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

Unified Diff: Source/modules/crypto/Crypto.idl

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.cpp ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Crypto.idl
diff --git a/Source/modules/crypto/Crypto.idl b/Source/modules/crypto/Crypto.idl
index 0cabce2f3da34e3719b2237d7092467b2086a17a..0682853789128c922fc7d970861cc3702b197b39 100644
--- a/Source/modules/crypto/Crypto.idl
+++ b/Source/modules/crypto/Crypto.idl
@@ -29,6 +29,13 @@
[
NoInterfaceObject
] interface Crypto {
+ // Note that getRandomValues() is available even when the "Crypto"
+ // runtime feature is disabled.
+ //
+ // This is for compatibility sake, since getRandomValues() predates the full
+ // Web Crypto API spec.
[Custom, RaisesException] ArrayBufferView getRandomValues(ArrayBufferView array);
+
+ [EnabledAtRuntime=Crypto] readonly attribute SubtleCrypto subtle;
};
« no previous file with comments | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698