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

Side by Side Diff: chrome/browser/chromeos/cros/cert_library.h

Issue 10916094: Move the NSS functions out of CertDatabase into a new NSSCertDatabase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "net/base/cert_database.h"
12 #include "net/base/x509_certificate.h" 11 #include "net/base/x509_certificate.h"
13 12
14 namespace crypto { 13 namespace crypto {
15 class SymmetricKey; 14 class SymmetricKey;
16 } 15 }
17 16
18 namespace chromeos { 17 namespace chromeos {
19 18
20 class CertLibrary { 19 class CertLibrary {
21 public: 20 public:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Encrypts |token| with supplemental user key. 104 // Encrypts |token| with supplemental user key.
106 virtual std::string EncryptToken(const std::string& token) = 0; 105 virtual std::string EncryptToken(const std::string& token) = 0;
107 106
108 // Decrypts |token| with supplemental user key. 107 // Decrypts |token| with supplemental user key.
109 virtual std::string DecryptToken(const std::string& encrypted_token) = 0; 108 virtual std::string DecryptToken(const std::string& encrypted_token) = 0;
110 }; 109 };
111 110
112 } // namespace chromeos 111 } // namespace chromeos
113 112
114 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 113 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698