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

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

Issue 141413003: [webcrypto] Match the error handling defined by the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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/CryptoResultImpl.cpp ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Key.h
diff --git a/Source/modules/crypto/Key.h b/Source/modules/crypto/Key.h
index aa6bad09ffb7d10b00bd65ece7dd254a97d4e154..598ab9fbc620c7d5fc2f5a20740de57912834916 100644
--- a/Source/modules/crypto/Key.h
+++ b/Source/modules/crypto/Key.h
@@ -57,7 +57,9 @@ public:
const blink::WebCryptoKey& key() const { return m_key; }
- bool canBeUsedForAlgorithm(const blink::WebCryptoAlgorithm&, AlgorithmOperation, ExceptionState&) const;
+ // If the key cannot be used with the indicated algorithm, returns false
+ // and fills the provided String with error details.
+ bool canBeUsedForAlgorithm(const blink::WebCryptoAlgorithm&, AlgorithmOperation, String&) const;
static bool parseFormat(const String&, blink::WebCryptoKeyFormat&, ExceptionState&);
static bool parseUsageMask(const Vector<String>&, blink::WebCryptoKeyUsageMask&, ExceptionState&);
« no previous file with comments | « Source/modules/crypto/CryptoResultImpl.cpp ('k') | Source/modules/crypto/Key.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698