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

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

Issue 8761016: Shaving parallel authenticator yak to remove unnecessary dependency on this class from OAuth spec... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Returns the current list of user certificates. 95 // Returns the current list of user certificates.
96 virtual const CertList& GetUserCertificates() const = 0; 96 virtual const CertList& GetUserCertificates() const = 0;
97 97
98 // Returns the current list of server certificates. 98 // Returns the current list of server certificates.
99 virtual const CertList& GetServerCertificates() const = 0; 99 virtual const CertList& GetServerCertificates() const = 0;
100 100
101 // Returns the current list of server CA certificates. 101 // Returns the current list of server CA certificates.
102 virtual const CertList& GetCACertificates() const = 0; 102 virtual const CertList& GetCACertificates() const = 0;
103 103
104 // Returns the supplemental user key. 104 // Encrypts |token| with supplemental user key.
105 virtual crypto::SymmetricKey* GetSupplementalUserKey() const = 0; 105 virtual std::string EncryptToken(const std::string& token) = 0;
106
107 // Decrypts |token| with supplemental user key.
108 virtual std::string DecryptToken(const std::string& encrypted_token) = 0;
106 }; 109 };
107 110
108 } // namespace chromeos 111 } // namespace chromeos
109 112
110 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 113 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698