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

Side by Side Diff: components/webcrypto/nss/key_nss.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_NSS_KEY_NSS_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_
6 #define CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "crypto/scoped_nss_types.h" 11 #include "crypto/scoped_nss_types.h"
12 #include "third_party/WebKit/public/platform/WebCryptoKey.h" 12 #include "third_party/WebKit/public/platform/WebCryptoKey.h"
13 13
14 namespace content { 14 namespace components {
15 15
16 namespace webcrypto { 16 namespace webcrypto {
17 17
18 class CryptoData; 18 class CryptoData;
19 class PrivateKeyNss; 19 class PrivateKeyNss;
20 class PublicKeyNss; 20 class PublicKeyNss;
21 class SymKeyNss; 21 class SymKeyNss;
22 22
23 // Base key class for all NSS keys, used to safely cast between types. Each key 23 // Base key class for all NSS keys, used to safely cast between types. Each key
24 // maintains a copy of its serialized form in either 'raw', 'pkcs8', or 'spki' 24 // maintains a copy of its serialized form in either 'raw', 'pkcs8', or 'spki'
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 private: 99 private:
100 crypto::ScopedSECKEYPrivateKey key_; 100 crypto::ScopedSECKEYPrivateKey key_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(PrivateKeyNss); 102 DISALLOW_COPY_AND_ASSIGN(PrivateKeyNss);
103 }; 103 };
104 104
105 } // namespace webcrypto 105 } // namespace webcrypto
106 106
107 } // namespace content 107 } // namespace components
108 108
109 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_ 109 #endif // CONTENT_CHILD_WEBCRYPTO_NSS_KEY_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698