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_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ | 5 #ifndef CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ |
6 #define CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ | 6 #define CONTENT_CHILD_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 { ENCRYPT, DECRYPT }; | 16 enum EncryptOrDecrypt { ENCRYPT, DECRYPT }; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Preconditions: | 175 // Preconditions: |
176 // * |key| is non-null. | 176 // * |key| is non-null. |
177 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer); | 177 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer); |
178 | 178 |
179 } // namespace platform | 179 } // namespace platform |
180 | 180 |
181 } // namespace webcrypto | 181 } // namespace webcrypto |
182 | 182 |
183 } // namespace content | 183 } // namespace content |
184 | 184 |
185 #endif // CONTENT_RENDERER_WEBCRYPTO_PLATFORM_CRYPTO_H_ | 185 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ |
OLD | NEW |