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

Unified Diff: Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp

Issue 16820007: Expose crypto.getRandomValues() to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/bindings/v8/custom/V8WorkerCryptoCustom.cpp
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp
similarity index 89%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..539b9ed11590c17ec5ce2bbc307520a49e6ac24e 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp
@@ -29,16 +29,15 @@
*/
#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+#include "V8WorkerCrypto.h"
-namespace WebCore {
+#include "V8Crypto.h"
-static unsigned long s_uniqueIdentifier = 0;
+namespace WebCore {
-unsigned long createUniqueIdentifier()
+void V8WorkerCrypto::getRandomValuesMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
- return ++s_uniqueIdentifier;
+ V8Crypto::getRandomValuesMethodCustom(args);
}
} // namespace WebCore
-

Powered by Google App Engine
This is Rietveld 408576698