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

Unified Diff: Source/modules/crypto/CryptoOperation.cpp

Issue 21561004: WebCrypto: Add crypto.subtle.verify() to the platform interfaces. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing file common.js Created 7 years, 5 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
« no previous file with comments | « Source/modules/crypto/CryptoOperation.h ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/CryptoOperation.cpp
diff --git a/Source/modules/crypto/CryptoOperation.cpp b/Source/modules/crypto/CryptoOperation.cpp
index 74c8b7e043102bc7f4beb469561027d441fef658..3f4ee41033d6bc6a1445eae77267d79a3fae5bc0 100644
--- a/Source/modules/crypto/CryptoOperation.cpp
+++ b/Source/modules/crypto/CryptoOperation.cpp
@@ -120,6 +120,15 @@ void CryptoOperationImpl::completeWithArrayBuffer(const WebKit::WebArrayBuffer&
promiseResolver()->fulfill(PassRefPtr<ArrayBuffer>(buffer));
}
+void CryptoOperationImpl::completeWithBoolean(bool b)
+{
+ ASSERT(m_state == Processing || m_state == Finishing);
+
+ m_impl = 0;
+ m_state = Done;
+ promiseResolver()->fulfill(ScriptValue::createBoolean(b));
+}
+
void CryptoOperationImpl::process(const void* bytes, size_t size)
{
switch (m_state) {
« no previous file with comments | « Source/modules/crypto/CryptoOperation.h ('k') | Source/modules/crypto/SubtleCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698