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

Unified Diff: Source/platform/exported/WebCryptoKey.cpp

Issue 1184123007: move KeyUsageAllows to more logical place(part1) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed as suggested Created 5 years, 4 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 | « no previous file | public/platform/WebCryptoKey.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebCryptoKey.cpp
diff --git a/Source/platform/exported/WebCryptoKey.cpp b/Source/platform/exported/WebCryptoKey.cpp
index 28f95b433ba736e228d7ebb9887f1a98757f148f..74d0ca75ac1cc3a277babe6cc17536fa7a88bd37 100644
--- a/Source/platform/exported/WebCryptoKey.cpp
+++ b/Source/platform/exported/WebCryptoKey.cpp
@@ -105,6 +105,11 @@ bool WebCryptoKey::isNull() const
return m_private.isNull();
}
+bool WebCryptoKey::keyUsageAllows(const blink::WebCryptoKeyUsage usage) const
+{
+ return ((m_private->usages & usage) != 0);
+}
+
void WebCryptoKey::assign(const WebCryptoKey& other)
{
m_private = other.m_private;
« no previous file with comments | « no previous file | public/platform/WebCryptoKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698