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

Side by Side Diff: content/renderer/webcrypto/platform_crypto.h

Issue 171503006: [style] Run webcrypto files through clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/webcrypto/jwk.cc ('k') | content/renderer/webcrypto/platform_crypto_nss.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_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_
6 #define CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ 6 #define CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_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/WebArrayBuffer.h" 10 #include "third_party/WebKit/public/platform/WebArrayBuffer.h"
11 #include "third_party/WebKit/public/platform/WebCrypto.h" 11 #include "third_party/WebKit/public/platform/WebCrypto.h"
12 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 12 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 enum EncryptOrDecrypt { 16 enum EncryptOrDecrypt { ENCRYPT, DECRYPT };
17 ENCRYPT,
18 DECRYPT
19 };
20 17
21 namespace webcrypto { 18 namespace webcrypto {
22 19
23 class CryptoData; 20 class CryptoData;
24 class Status; 21 class Status;
25 22
26 // Functions in the webcrypto::platform namespace are intended to be those 23 // Functions in the webcrypto::platform namespace are intended to be those
27 // which are OpenSSL/NSS specific. 24 // which are OpenSSL/NSS specific.
28 // 25 //
29 // The general purpose code which applies to both OpenSSL and NSS 26 // The general purpose code which applies to both OpenSSL and NSS
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // * |key| is non-null. 168 // * |key| is non-null.
172 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer); 169 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer);
173 170
174 } // namespace platform 171 } // namespace platform
175 172
176 } // namespace webcrypto 173 } // namespace webcrypto
177 174
178 } // namespace content 175 } // namespace content
179 176
180 #endif // CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ 177 #endif // CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_
OLDNEW
« no previous file with comments | « content/renderer/webcrypto/jwk.cc ('k') | content/renderer/webcrypto/platform_crypto_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698