Index: components/webcrypto/jwk.h |
diff --git a/content/child/webcrypto/jwk.h b/components/webcrypto/jwk.h |
similarity index 94% |
rename from content/child/webcrypto/jwk.h |
rename to components/webcrypto/jwk.h |
index 7cd603cfb6fb8acff70fc34d91b49e7860ff4648..98bef2a68e427171f88a0bb5bc81aac123787d53 100644 |
--- a/content/child/webcrypto/jwk.h |
+++ b/components/webcrypto/jwk.h |
@@ -10,10 +10,9 @@ |
#include "base/strings/string_piece.h" |
#include "base/values.h" |
-#include "content/common/content_export.h" |
#include "third_party/WebKit/public/platform/WebCrypto.h" |
-namespace content { |
+namespace components { |
namespace webcrypto { |
@@ -233,23 +232,21 @@ const char* GetJwkHmacAlgorithmName(blink::WebCryptoAlgorithmId hash); |
// https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-36#section-2 |
// |
// In essence it is RFC 4648 'base64url' encoding where padding is omitted. |
-CONTENT_EXPORT bool Base64DecodeUrlSafe(const std::string& input, |
- std::string* output); |
+bool Base64DecodeUrlSafe(const std::string& input, std::string* output); |
// Encodes |input| using JWK's flavor of base64 encoding. See the description |
// above for details. |
-CONTENT_EXPORT std::string Base64EncodeUrlSafe(const base::StringPiece& input); |
-CONTENT_EXPORT std::string Base64EncodeUrlSafe( |
- const std::vector<uint8_t>& input); |
+std::string Base64EncodeUrlSafe(const base::StringPiece& input); |
+std::string Base64EncodeUrlSafe(const std::vector<uint8_t>& input); |
// Converts a JWK "key_ops" array to the corresponding WebCrypto usages. Used by |
// testing. |
-CONTENT_EXPORT Status |
-GetWebCryptoUsagesFromJwkKeyOpsForTest(const base::ListValue* key_ops, |
- blink::WebCryptoKeyUsageMask* usages); |
+Status GetWebCryptoUsagesFromJwkKeyOpsForTest( |
+ const base::ListValue* key_ops, |
+ blink::WebCryptoKeyUsageMask* usages); |
} // namespace webcrypto |
-} // namespace content |
+} // namespace components |
#endif // CONTENT_CHILD_WEBCRYPTO_JWK_H_ |