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

Side by Side Diff: content/child/webcrypto/webcrypto_impl.h

Issue 670773003: Cleanup: rename usage_mask --> usages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « content/child/webcrypto/test/test_helpers.cc ('k') | content/child/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_
6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/public/platform/WebCrypto.h" 10 #include "third_party/WebKit/public/platform/WebCrypto.h"
(...skipping 23 matching lines...) Expand all
34 const blink::WebCryptoKey& key, 34 const blink::WebCryptoKey& key,
35 const unsigned char* data, 35 const unsigned char* data,
36 unsigned int data_size, 36 unsigned int data_size,
37 blink::WebCryptoResult result); 37 blink::WebCryptoResult result);
38 virtual void digest(const blink::WebCryptoAlgorithm& algorithm, 38 virtual void digest(const blink::WebCryptoAlgorithm& algorithm,
39 const unsigned char* data, 39 const unsigned char* data,
40 unsigned int data_size, 40 unsigned int data_size,
41 blink::WebCryptoResult result); 41 blink::WebCryptoResult result);
42 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, 42 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm,
43 bool extractable, 43 bool extractable,
44 blink::WebCryptoKeyUsageMask usage_mask, 44 blink::WebCryptoKeyUsageMask usages,
45 blink::WebCryptoResult result); 45 blink::WebCryptoResult result);
46 virtual void importKey(blink::WebCryptoKeyFormat format, 46 virtual void importKey(blink::WebCryptoKeyFormat format,
47 const unsigned char* key_data, 47 const unsigned char* key_data,
48 unsigned int key_data_size, 48 unsigned int key_data_size,
49 const blink::WebCryptoAlgorithm& algorithm, 49 const blink::WebCryptoAlgorithm& algorithm,
50 bool extractable, 50 bool extractable,
51 blink::WebCryptoKeyUsageMask usage_mask, 51 blink::WebCryptoKeyUsageMask usages,
52 blink::WebCryptoResult result); 52 blink::WebCryptoResult result);
53 virtual void exportKey(blink::WebCryptoKeyFormat format, 53 virtual void exportKey(blink::WebCryptoKeyFormat format,
54 const blink::WebCryptoKey& key, 54 const blink::WebCryptoKey& key,
55 blink::WebCryptoResult result); 55 blink::WebCryptoResult result);
56 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, 56 virtual void sign(const blink::WebCryptoAlgorithm& algorithm,
57 const blink::WebCryptoKey& key, 57 const blink::WebCryptoKey& key,
58 const unsigned char* data, 58 const unsigned char* data,
59 unsigned int data_size, 59 unsigned int data_size,
60 blink::WebCryptoResult result); 60 blink::WebCryptoResult result);
61 virtual void verifySignature(const blink::WebCryptoAlgorithm& algorithm, 61 virtual void verifySignature(const blink::WebCryptoAlgorithm& algorithm,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, 102 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key,
103 blink::WebVector<unsigned char>& key_data); 103 blink::WebVector<unsigned char>& key_data);
104 104
105 private: 105 private:
106 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 106 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
107 }; 107 };
108 108
109 } // namespace content 109 } // namespace content
110 110
111 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 111 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/webcrypto/test/test_helpers.cc ('k') | content/child/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698