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

Side by Side Diff: components/webcrypto/generate_key_result.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/crypto_data.cc ('k') | components/webcrypto/generate_key_result.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_GENERATE_KEY_RESULT_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_GENERATE_KEY_RESULT_H_
6 #define CONTENT_CHILD_WEBCRYPTO_GENERATE_KEY_RESULT_H_ 6 #define COMPONENTS_WEBCRYPTO_GENERATE_KEY_RESULT_H_
7 7
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebCrypto.h" 8 #include "third_party/WebKit/public/platform/WebCrypto.h"
10 9
11 namespace content {
12
13 namespace webcrypto { 10 namespace webcrypto {
14 11
15 // This is the result object when generating keys. It encapsulates either a 12 // This is the result object when generating keys. It encapsulates either a
16 // secret key, or a public/private key pair. 13 // secret key, or a public/private key pair.
17 class CONTENT_EXPORT GenerateKeyResult { 14 class GenerateKeyResult {
18 public: 15 public:
19 enum Type { 16 enum Type {
20 // An empty (or "null") result. 17 // An empty (or "null") result.
21 TYPE_NULL, 18 TYPE_NULL,
22 19
23 // The result is a secret key, accessible through secret_key() 20 // The result is a secret key, accessible through secret_key()
24 TYPE_SECRET_KEY, 21 TYPE_SECRET_KEY,
25 22
26 // The result is a public/private key pair, accessible through public_key() 23 // The result is a public/private key pair, accessible through public_key()
27 // and private_key() 24 // and private_key()
(...skipping 20 matching lines...) Expand all
48 private: 45 private:
49 Type type_; 46 Type type_;
50 47
51 blink::WebCryptoKey secret_key_; 48 blink::WebCryptoKey secret_key_;
52 blink::WebCryptoKey public_key_; 49 blink::WebCryptoKey public_key_;
53 blink::WebCryptoKey private_key_; 50 blink::WebCryptoKey private_key_;
54 }; 51 };
55 52
56 } // namespace webcrypto 53 } // namespace webcrypto
57 54
58 } // namespace content 55 #endif // COMPONENTS_WEBCRYPTO_GENERATE_KEY_RESULT_H_
59
60 #endif // CONTENT_CHILD_WEBCRYPTO_GENERATE_KEY_RESULT_H_
OLDNEW
« no previous file with comments | « components/webcrypto/crypto_data.cc ('k') | components/webcrypto/generate_key_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698