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

Unified Diff: public/platform/WebCryptoAlgorithmParams.h

Issue 105453002: [webcrypto] Mark some methods in public API as const. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCryptoAlgorithmParams.h
diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
index 87cb0cc91f6d8f4f5200f228ae54b65b3d7a3483..a6d6105c5af678b11d846e5831e9b5fa84886da2 100644
--- a/public/platform/WebCryptoAlgorithmParams.h
+++ b/public/platform/WebCryptoAlgorithmParams.h
@@ -195,7 +195,7 @@ public:
const WebVector<unsigned char>& iv() const { return m_iv; }
bool hasAdditionalData() const { return m_hasAdditionalData; }
- bool getAdditionalData(const WebVector<unsigned char>*& additionalData)
+ bool getAdditionalData(const WebVector<unsigned char>*& additionalData) const
{
if (!m_hasAdditionalData)
return false;
@@ -204,7 +204,7 @@ public:
}
bool hasTagLength() const { return m_hasTagLength; }
- bool getTagLength(unsigned& tagLength)
+ bool getTagLength(unsigned& tagLength) const
{
if (!m_hasTagLength)
return false;
@@ -234,7 +234,7 @@ public:
const WebCryptoAlgorithm& hash() const { return m_hash; }
bool hasLabel() const { return m_hasLabel; }
- bool getLabel(const WebVector<unsigned char>*& label)
+ bool getLabel(const WebVector<unsigned char>*& label) const
{
if (!m_hasLabel)
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698