summaryrefslogtreecommitdiffstats
path: root/content/renderer/webcrypto_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/webcrypto_impl.h')
-rw-r--r--content/renderer/webcrypto_impl.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/content/renderer/webcrypto_impl.h b/content/renderer/webcrypto_impl.h
index 42081c4..6590202 100644
--- a/content/renderer/webcrypto_impl.h
+++ b/content/renderer/webcrypto_impl.h
@@ -7,14 +7,29 @@
#include "base/compiler_specific.h"
+#include "base/gtest_prod_util.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebCrypto.h"
namespace content {
-class WebCryptoImpl : public WebKit::WebCrypto {
+class CONTENT_EXPORT WebCryptoImpl
+ : NON_EXPORTED_BASE(public WebKit::WebCrypto) {
public:
- virtual WebKit::WebCryptoOperation* digest(
- const WebKit::WebCryptoAlgorithm& algorithm) OVERRIDE;
+ virtual void digest(
+ const WebKit::WebCryptoAlgorithm& algorithm,
+ const unsigned char* data,
+ size_t data_size,
+ WebKit::WebCryptoResult result);
+
+ protected:
+ FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets);
+
+ bool digestInternal(
+ const WebKit::WebCryptoAlgorithm& algorithm,
+ const unsigned char* data,
+ size_t data_size,
+ WebKit::WebArrayBuffer* buffer);
};
} // namespace content