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

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

Issue 15897025: Add window.crypto.subtle behind a runtime feature flag ("Crypto") (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on head Created 7 years, 6 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/Crypto.idl ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.h
diff --git a/Source/modules/crypto/Crypto.h b/Source/modules/crypto/SubtleCrypto.h
similarity index 84%
copy from Source/modules/crypto/Crypto.h
copy to Source/modules/crypto/SubtleCrypto.h
index 3e34ca1599864a5d9cd6592bb922ebc0b6272aeb..a7550052758fb678221f9c7be4f2209562325cdc 100644
--- a/Source/modules/crypto/Crypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -26,8 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Crypto_h
-#define Crypto_h
+#ifndef SubtleCrypto_h
+#define SubtleCrypto_h
#include "bindings/v8/ScriptWrappable.h"
#include "wtf/Forward.h"
@@ -38,14 +38,12 @@ namespace WebCore {
typedef int ExceptionCode;
-class Crypto : public ScriptWrappable, public RefCounted<Crypto> {
+class SubtleCrypto : public ScriptWrappable, public RefCounted<SubtleCrypto> {
public:
- static PassRefPtr<Crypto> create() { return adoptRef(new Crypto()); }
-
- void getRandomValues(ArrayBufferView*, ExceptionCode&);
+ static PassRefPtr<SubtleCrypto> create() { return adoptRef(new SubtleCrypto()); }
private:
- Crypto();
+ SubtleCrypto();
};
}
« no previous file with comments | « Source/modules/crypto/Crypto.idl ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698