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

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

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) 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/AesCbcParams.h
diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/modules/crypto/AesCbcParams.h
similarity index 79%
copy from Source/modules/crypto/WorkerCrypto.h
copy to Source/modules/crypto/AesCbcParams.h
index 5bbb3f5d39eba918f40aab6f91439d3993547e81..b3856bec33697fe4687eb1cf01b3ce0217522a63 100644
--- a/Source/modules/crypto/WorkerCrypto.h
+++ b/Source/modules/crypto/AesCbcParams.h
@@ -28,26 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerCrypto_h
-#define WorkerCrypto_h
+#ifndef AesCbcParams_h
+#define AesCbcParams_h
-#include "bindings/v8/ScriptWrappable.h"
-#include "wtf/Forward.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+#include "modules/crypto/Algorithm.h"
+#include "wtf/Uint8Array.h"
namespace WebCore {
typedef int ExceptionCode;
-class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> {
+class AesCbcParams : public Algorithm {
public:
- static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); }
+ static PassRefPtr<AesCbcParams> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new AesCbcParams(algorithm)); }
+
+ Uint8Array* iv();
private:
- WorkerCrypto();
+ explicit AesCbcParams(const WebKit::WebCryptoAlgorithm&);
+
+ RefPtr<Uint8Array> m_iv;
};
-}
+} // namespace WebCore
#endif
« no previous file with comments | « Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp ('k') | Source/modules/crypto/AesCbcParams.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698