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

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

Issue 16820007: Expose crypto.getRandomValues() to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/modules/crypto/RandomSource.idl
diff --git a/Source/modules/crypto/Crypto.idl b/Source/modules/crypto/RandomSource.idl
similarity index 92%
copy from Source/modules/crypto/Crypto.idl
copy to Source/modules/crypto/RandomSource.idl
index 0682853789128c922fc7d970861cc3702b197b39..2508c434c4a97d8e924840a5ddb1b56bdd72d5c5 100644
--- a/Source/modules/crypto/Crypto.idl
+++ b/Source/modules/crypto/RandomSource.idl
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Googl, Inc. ("Google") nor the names of
+ * 3. Neither the name of Google, Inc. ("Google") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -28,14 +28,12 @@
[
NoInterfaceObject
-] interface Crypto {
+] interface RandomSource {
// 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.
Ryan Sleevi 2013/06/12 21:57:15 comment updates needed
eroman 2013/06/12 22:00:00 I will move some version of this comment to Crypto
[Custom, RaisesException] ArrayBufferView getRandomValues(ArrayBufferView array);
-
- [EnabledAtRuntime=Crypto] readonly attribute SubtleCrypto subtle;
};

Powered by Google App Engine
This is Rietveld 408576698