Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
| 6 #define CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ | 6 #define CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 WebKit::WebCryptoResult result); | 34 WebKit::WebCryptoResult result); |
| 35 virtual void sign( | 35 virtual void sign( |
| 36 const WebKit::WebCryptoAlgorithm& algorithm, | 36 const WebKit::WebCryptoAlgorithm& algorithm, |
| 37 const WebKit::WebCryptoKey& key, | 37 const WebKit::WebCryptoKey& key, |
| 38 const unsigned char* data, | 38 const unsigned char* data, |
| 39 unsigned data_size, | 39 unsigned data_size, |
| 40 WebKit::WebCryptoResult result); | 40 WebKit::WebCryptoResult result); |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets); | 43 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets); |
| 44 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, HMACSampleSets); | 44 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, HMACSampleSets); |
|
Ryan Sleevi
2013/09/24 01:17:11
nit: these two are no longer needed, are they?
eroman
2013/09/24 01:26:41
They are still needed:
DigestSampleSets: calls D
| |
| 45 friend class WebCryptoImplTest; | |
| 45 | 46 |
| 46 void Init(); | 47 void Init(); |
| 47 | 48 |
| 48 bool DigestInternal( | 49 bool DigestInternal( |
| 49 const WebKit::WebCryptoAlgorithm& algorithm, | 50 const WebKit::WebCryptoAlgorithm& algorithm, |
| 50 const unsigned char* data, | 51 const unsigned char* data, |
| 51 unsigned data_size, | 52 unsigned data_size, |
| 52 WebKit::WebArrayBuffer* buffer); | 53 WebKit::WebArrayBuffer* buffer); |
| 53 bool ImportKeyInternal( | 54 bool ImportKeyInternal( |
| 54 WebKit::WebCryptoKeyFormat format, | 55 WebKit::WebCryptoKeyFormat format, |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 65 unsigned data_size, | 66 unsigned data_size, |
| 66 WebKit::WebArrayBuffer* buffer); | 67 WebKit::WebArrayBuffer* buffer); |
| 67 | 68 |
| 68 private: | 69 private: |
| 69 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 70 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace content | 73 } // namespace content |
| 73 | 74 |
| 74 #endif // CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ | 75 #endif // CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
| OLD | NEW |