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

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

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/Crypto.h
diff --git a/Source/modules/crypto/Crypto.h b/Source/modules/crypto/Crypto.h
index d4f5cda3ae92170a7f90b892691540722882ff60..6a8ca977fed119b2caa9d7058912b8c678a91022 100644
--- a/Source/modules/crypto/Crypto.h
+++ b/Source/modules/crypto/Crypto.h
@@ -29,22 +29,17 @@
#ifndef Crypto_h
#define Crypto_h
-#include "bindings/v8/ScriptWrappable.h"
+#include "modules/crypto/RandomSource.h"
#include "modules/crypto/SubtleCrypto.h"
-#include "wtf/Forward.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace WebCore {
typedef int ExceptionCode;
-class Crypto : public ScriptWrappable, public RefCounted<Crypto> {
+class Crypto : public RandomSource {
public:
static PassRefPtr<Crypto> create() { return adoptRef(new Crypto()); }
- void getRandomValues(ArrayBufferView*, ExceptionCode&);
-
SubtleCrypto* subtle();
private:

Powered by Google App Engine
This is Rietveld 408576698