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

Side by Side Diff: components/webcrypto/webcrypto_impl.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
« no previous file with comments | « components/webcrypto/webcrypto.gyp ('k') | components/webcrypto/webcrypto_impl.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_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_
6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 6 #define COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_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/WebCrypto.h" 10 #include "third_party/WebKit/public/platform/WebCrypto.h"
11 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" 11 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
12 #include "third_party/WebKit/public/platform/WebVector.h" 12 #include "third_party/WebKit/public/platform/WebVector.h"
13 13
14 namespace content { 14 namespace webcrypto {
15 15
16 // Wrapper around the Blink WebCrypto asynchronous interface, which forwards to 16 // Wrapper around the Blink WebCrypto asynchronous interface, which forwards to
17 // the synchronous platform (NSS or OpenSSL) implementation. 17 // the synchronous platform (NSS or OpenSSL) implementation.
18 // 18 //
19 // WebCryptoImpl is threadsafe. 19 // WebCryptoImpl is threadsafe.
20 // 20 //
21 // EnsureInit() must be called prior to using methods on WebCryptoImpl(). 21 // EnsureInit() must be called prior to using methods on WebCryptoImpl().
22 class WebCryptoImpl : public blink::WebCrypto { 22 class WebCryptoImpl : public blink::WebCrypto {
23 public: 23 public:
24 WebCryptoImpl(); 24 WebCryptoImpl();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 unsigned key_data_size, 115 unsigned key_data_size,
116 blink::WebCryptoKey& key); 116 blink::WebCryptoKey& key);
117 117
118 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, 118 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key,
119 blink::WebVector<unsigned char>& key_data); 119 blink::WebVector<unsigned char>& key_data);
120 120
121 private: 121 private:
122 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 122 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace webcrypto
126 126
127 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 127 #endif // COMPONENTS_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « components/webcrypto/webcrypto.gyp ('k') | components/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698