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

Unified Diff: Source/modules/crypto/WorkerCrypto.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/modules/crypto/WorkerCrypto.cpp
diff --git a/Source/core/loader/UniqueIdentifier.h b/Source/modules/crypto/WorkerCrypto.cpp
similarity index 92%
copy from Source/core/loader/UniqueIdentifier.h
copy to Source/modules/crypto/WorkerCrypto.cpp
index c1dc5a2b000338f48b787c9292d80ef1671f5600..d77d0978de73288917dc7bb1fd259245715e5ff4 100644
--- a/Source/core/loader/UniqueIdentifier.h
+++ b/Source/modules/crypto/WorkerCrypto.cpp
@@ -28,14 +28,14 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef UniqueIdentifier_h
-#define UniqueIdentifier_h
+#include "config.h"
+#include "modules/crypto/WorkerCrypto.h"
namespace WebCore {
-unsigned long createUniqueIdentifier();
-
+WorkerCrypto::WorkerCrypto()
+{
+ ScriptWrappable::init(this);
}
-#endif // UniqueIdentifier_h
-
+}

Powered by Google App Engine
This is Rietveld 408576698