Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: components/webcrypto/webcrypto_util.h

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy the msvs_disabled_warnings to the new target. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/webcrypto/webcrypto_util.h
diff --git a/content/child/webcrypto/webcrypto_util.h b/components/webcrypto/webcrypto_util.h
similarity index 91%
rename from content/child/webcrypto/webcrypto_util.h
rename to components/webcrypto/webcrypto_util.h
index 2da3d6083518f55aeabdfb5ccb62e54e10b2e3f4..bcbfb2ab3ca3eab0b1fd0f693fb764a94859d66f 100644
--- a/content/child/webcrypto/webcrypto_util.h
+++ b/components/webcrypto/webcrypto_util.h
@@ -9,39 +9,37 @@
#include <string>
#include "base/values.h"
-#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
#include "third_party/WebKit/public/platform/WebCryptoKey.h"
-namespace content {
+namespace components {
namespace webcrypto {
class Status;
// Creates a WebCryptoAlgorithm without any parameters.
-CONTENT_EXPORT blink::WebCryptoAlgorithm CreateAlgorithm(
- blink::WebCryptoAlgorithmId id);
+blink::WebCryptoAlgorithm CreateAlgorithm(blink::WebCryptoAlgorithmId id);
// Creates an HMAC import algorithm whose inner hash algorithm is determined by
// the specified algorithm ID. It is an error to call this method with a hash
// algorithm that is not SHA*.
-CONTENT_EXPORT blink::WebCryptoAlgorithm CreateHmacImportAlgorithm(
+blink::WebCryptoAlgorithm CreateHmacImportAlgorithm(
blink::WebCryptoAlgorithmId hash_id,
unsigned int length_bits);
// Same as above but without specifying a length.
-CONTENT_EXPORT blink::WebCryptoAlgorithm CreateHmacImportAlgorithmNoLength(
+blink::WebCryptoAlgorithm CreateHmacImportAlgorithmNoLength(
blink::WebCryptoAlgorithmId hash_id);
// Creates an import algorithm for RSA algorithms that take a hash.
// It is an error to call this with a hash_id that is not a SHA*.
-CONTENT_EXPORT blink::WebCryptoAlgorithm CreateRsaHashedImportAlgorithm(
+blink::WebCryptoAlgorithm CreateRsaHashedImportAlgorithm(
blink::WebCryptoAlgorithmId id,
blink::WebCryptoAlgorithmId hash_id);
// Creates an import algorithm for EC keys.
-CONTENT_EXPORT blink::WebCryptoAlgorithm CreateEcImportAlgorithm(
+blink::WebCryptoAlgorithm CreateEcImportAlgorithm(
blink::WebCryptoAlgorithmId id,
blink::WebCryptoNamedCurve named_curve);
@@ -134,6 +132,6 @@ Status GetUsagesForGenerateAsymmetricKey(
} // namespace webcrypto
-} // namespace content
+} // namespace components
#endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698