Import Cobalt 19.master.0.205881
diff --git a/src/crypto/sha2.h b/src/crypto/sha2.h
index e235f82..6d8f5a3 100644
--- a/src/crypto/sha2.h
+++ b/src/crypto/sha2.h
@@ -7,8 +7,9 @@
 
 #include <string>
 
-#include "base/string_piece.h"
+#include "base/strings/string_piece.h"
 #include "crypto/crypto_export.h"
+#include "starboard/types.h"
 
 namespace crypto {
 
@@ -21,12 +22,13 @@
 // Computes the SHA-256 hash of the input string 'str' and stores the first
 // 'len' bytes of the hash in the output buffer 'output'.  If 'len' > 32,
 // only 32 bytes (the full hash) are stored in the 'output' buffer.
-CRYPTO_EXPORT void SHA256HashString(const base::StringPiece& str,
-                                    void* output, size_t len);
+CRYPTO_EXPORT void SHA256HashString(base::StringPiece str,
+                                    void* output,
+                                    size_t len);
 
 // Convenience version of the above that returns the result in a 32-byte
 // string.
-CRYPTO_EXPORT std::string SHA256HashString(const base::StringPiece& str);
+CRYPTO_EXPORT std::string SHA256HashString(base::StringPiece str);
 
 }  // namespace crypto