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

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: Copy the msvs_disabled_warnings to the new target. 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698