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

Unified Diff: Source/modules/crypto/HmacKeyAlgorithm.h

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) Created 6 years, 10 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
« no previous file with comments | « Source/modules/crypto/Algorithm.idl ('k') | Source/modules/crypto/HmacKeyAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/HmacKeyAlgorithm.h
diff --git a/Source/platform/fonts/FontCacheClient.h b/Source/modules/crypto/HmacKeyAlgorithm.h
similarity index 76%
copy from Source/platform/fonts/FontCacheClient.h
copy to Source/modules/crypto/HmacKeyAlgorithm.h
index 4e43b8c72cf93e9d6f51f68098d434a9d97444ce..f4cbdb40cdf415c445a0fcf7411679089d69152d 100644
--- a/Source/platform/fonts/FontCacheClient.h
+++ b/Source/modules/crypto/HmacKeyAlgorithm.h
@@ -28,21 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FontCacheClient_h
-#define FontCacheClient_h
+#ifndef HmacKeyAlgorithm_h
+#define HmacKeyAlgorithm_h
-#include "platform/PlatformExport.h"
-#include "wtf/RefCounted.h"
+#include "modules/crypto/KeyAlgorithm.h"
namespace WebCore {
-class PLATFORM_EXPORT FontCacheClient : public RefCounted<FontCacheClient> {
+class HmacKeyAlgorithm : public KeyAlgorithm {
public:
- virtual ~FontCacheClient() { }
+ static PassRefPtrWillBeRawPtr<HmacKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
- virtual void fontCacheInvalidated() = 0;
+ KeyAlgorithm* hash();
+
+ virtual void trace(Visitor*) OVERRIDE;
+
+private:
+ explicit HmacKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
+
+ RefPtrWillBeMember<KeyAlgorithm> m_hash;
};
+DEFINE_KEY_ALGORITHM_TYPE_CASTS(HmacKeyAlgorithm);
+
} // namespace WebCore
-#endif // FontCacheClient_h
+#endif
« no previous file with comments | « Source/modules/crypto/Algorithm.idl ('k') | Source/modules/crypto/HmacKeyAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698