diff options
author | bryaneyler@google.com <bryaneyler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 01:32:54 +0000 |
---|---|---|
committer | bryaneyler@google.com <bryaneyler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 01:32:54 +0000 |
commit | e5b794b4c7c9773727ec24240cf2ecd7f5308255 (patch) | |
tree | 213bee37620b69bfd20bcd4c45266b35b753a7a8 /content/renderer/webcrypto_impl.h | |
parent | d14a8e014ec82255e317f1a2b5fdadc21d890075 (diff) | |
download | chromium_src-e5b794b4c7c9773727ec24240cf2ecd7f5308255.zip chromium_src-e5b794b4c7c9773727ec24240cf2ecd7f5308255.tar.gz chromium_src-e5b794b4c7c9773727ec24240cf2ecd7f5308255.tar.bz2 |
WebCrypto: Implement digest() using NSS
BUG=245025
R=eroman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19757011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webcrypto_impl.h')
-rw-r--r-- | content/renderer/webcrypto_impl.h | 21 |
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 |