| Index: third_party/WebKit/Source/modules/crypto/SubtleCrypto.h
|
| diff --git a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.h b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.h
|
| index dd9aa94a86c04db2e6ac29f7855b569dd82103b7..fef7a2e071a8bb3c49f33a702da97e746e8e9c6f 100644
|
| --- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.h
|
| +++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.h
|
| @@ -36,7 +36,6 @@
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "bindings/modules/v8/ArrayBufferOrArrayBufferViewOrDictionary.h"
|
| #include "bindings/modules/v8/DictionaryOrString.h"
|
| -#include "core/dom/DOMArrayPiece.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/Forward.h"
|
|
|
| @@ -55,19 +54,19 @@ public:
|
| return new SubtleCrypto();
|
| }
|
|
|
| - ScriptPromise encrypt(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const DOMArrayPiece&);
|
| - ScriptPromise decrypt(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const DOMArrayPiece&);
|
| - ScriptPromise sign(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const DOMArrayPiece&);
|
| + ScriptPromise encrypt(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const BufferSource&);
|
| + ScriptPromise decrypt(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const BufferSource&);
|
| + ScriptPromise sign(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const BufferSource&);
|
| // Note that this is not named "verify" because when compiling on Mac that expands to a macro and breaks.
|
| - ScriptPromise verifySignature(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const DOMArrayPiece& signature, const DOMArrayPiece& data);
|
| - ScriptPromise digest(ScriptState*, const AlgorithmIdentifier&, const DOMArrayPiece& data);
|
| + ScriptPromise verifySignature(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const BufferSource& signature, const BufferSource& data);
|
| + ScriptPromise digest(ScriptState*, const AlgorithmIdentifier&, const BufferSource& data);
|
|
|
| ScriptPromise generateKey(ScriptState*, const AlgorithmIdentifier&, bool extractable, const Vector<String>& keyUsages);
|
| ScriptPromise importKey(ScriptState*, const String&, const ArrayBufferOrArrayBufferViewOrDictionary&, const AlgorithmIdentifier&, bool extractable, const Vector<String>& keyUsages);
|
| ScriptPromise exportKey(ScriptState*, const String&, CryptoKey*);
|
|
|
| ScriptPromise wrapKey(ScriptState*, const String&, CryptoKey*, CryptoKey*, const AlgorithmIdentifier&);
|
| - ScriptPromise unwrapKey(ScriptState*, const String&, const DOMArrayPiece&, CryptoKey*, const AlgorithmIdentifier&, const AlgorithmIdentifier&, bool, const Vector<String>&);
|
| + ScriptPromise unwrapKey(ScriptState*, const String&, const BufferSource&, CryptoKey*, const AlgorithmIdentifier&, const AlgorithmIdentifier&, bool, const Vector<String>&);
|
|
|
| ScriptPromise deriveBits(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, unsigned);
|
| ScriptPromise deriveKey(ScriptState*, const AlgorithmIdentifier&, CryptoKey*, const AlgorithmIdentifier&, bool extractable, const Vector<String>&);
|
|
|