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

Side by Side Diff: components/webcrypto/algorithm_implementation.h

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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
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_ALGORITHM_IMPLEMENTATION_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_
6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_ 6 #define COMPONENTS_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 {
15
16 namespace webcrypto { 14 namespace webcrypto {
17 15
18 class CryptoData; 16 class CryptoData;
19 class GenerateKeyResult; 17 class GenerateKeyResult;
20 class Status; 18 class Status;
21 19
22 // AlgorithmImplementation is a base class for *executing* the operations of an 20 // AlgorithmImplementation is a base class for *executing* the operations of an
23 // algorithm (generating keys, encrypting, signing, etc.). 21 // algorithm (generating keys, encrypting, signing, etc.).
24 // 22 //
25 // This is in contrast to blink::WebCryptoAlgorithm which instead *describes* 23 // This is in contrast to blink::WebCryptoAlgorithm which instead *describes*
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const blink::WebCryptoKeyAlgorithm& algorithm, 212 const blink::WebCryptoKeyAlgorithm& algorithm,
215 blink::WebCryptoKeyType type, 213 blink::WebCryptoKeyType type,
216 bool extractable, 214 bool extractable,
217 blink::WebCryptoKeyUsageMask usages, 215 blink::WebCryptoKeyUsageMask usages,
218 const CryptoData& key_data, 216 const CryptoData& key_data,
219 blink::WebCryptoKey* key) const; 217 blink::WebCryptoKey* key) const;
220 }; 218 };
221 219
222 } // namespace webcrypto 220 } // namespace webcrypto
223 221
224 } // namespace content 222 #endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_
225
226 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « components/webcrypto/algorithm_dispatch.cc ('k') | components/webcrypto/algorithm_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698