OLD | NEW |
---|---|
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_ALGORITHM_IMPLEMENTATION_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
jam
2015/04/14 14:47:12
nit: please update header guards
| |
6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "third_party/WebKit/public/platform/WebCrypto.h" | 12 #include "third_party/WebKit/public/platform/WebCrypto.h" |
13 | 13 |
14 namespace content { | 14 namespace components { |
jam
2015/04/14 14:47:12
the convention for code in components\foo\ is that
| |
15 | 15 |
16 namespace webcrypto { | 16 namespace webcrypto { |
17 | 17 |
18 class CryptoData; | 18 class CryptoData; |
19 class GenerateKeyResult; | 19 class GenerateKeyResult; |
20 class Status; | 20 class Status; |
21 | 21 |
22 // AlgorithmImplementation is a base class for *executing* the operations of an | 22 // AlgorithmImplementation is a base class for *executing* the operations of an |
23 // algorithm (generating keys, encrypting, signing, etc.). | 23 // algorithm (generating keys, encrypting, signing, etc.). |
24 // | 24 // |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 const blink::WebCryptoKeyAlgorithm& algorithm, | 214 const blink::WebCryptoKeyAlgorithm& algorithm, |
215 blink::WebCryptoKeyType type, | 215 blink::WebCryptoKeyType type, |
216 bool extractable, | 216 bool extractable, |
217 blink::WebCryptoKeyUsageMask usages, | 217 blink::WebCryptoKeyUsageMask usages, |
218 const CryptoData& key_data, | 218 const CryptoData& key_data, |
219 blink::WebCryptoKey* key) const; | 219 blink::WebCryptoKey* key) const; |
220 }; | 220 }; |
221 | 221 |
222 } // namespace webcrypto | 222 } // namespace webcrypto |
223 | 223 |
224 } // namespace content | 224 } // namespace components |
225 | 225 |
226 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ | 226 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ |
OLD | NEW |