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

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

Issue 7756025: Changed OAuth token+secret encryption to use supplemental user key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« 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
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "net/base/cert_database.h" 12 #include "net/base/cert_database.h"
13 #include "net/base/x509_certificate.h" 13 #include "net/base/x509_certificate.h"
14 14
15 namespace crypto {
16 class SymmetricKey;
17 }
18
15 namespace chromeos { 19 namespace chromeos {
16 20
17 class CertLibrary { 21 class CertLibrary {
18 public: 22 public:
19 23
20 // Observers can register themselves via CertLibrary::AddObserver, and can 24 // Observers can register themselves via CertLibrary::AddObserver, and can
21 // un-register with CertLibrary::RemoveObserver. 25 // un-register with CertLibrary::RemoveObserver.
22 class Observer { 26 class Observer {
23 public: 27 public:
24 virtual ~Observer() {} 28 virtual ~Observer() {}
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual const CertList& GetCertificates() const = 0; 93 virtual const CertList& GetCertificates() const = 0;
90 94
91 // Returns the current list of user certificates. 95 // Returns the current list of user certificates.
92 virtual const CertList& GetUserCertificates() const = 0; 96 virtual const CertList& GetUserCertificates() const = 0;
93 97
94 // Returns the current list of server certificates. 98 // Returns the current list of server certificates.
95 virtual const CertList& GetServerCertificates() const = 0; 99 virtual const CertList& GetServerCertificates() const = 0;
96 100
97 // Returns the current list of server CA certificates. 101 // Returns the current list of server CA certificates.
98 virtual const CertList& GetCACertificates() const = 0; 102 virtual const CertList& GetCACertificates() const = 0;
103
104 // Returns the supplemental user key.
105 virtual crypto::SymmetricKey* GetSupplementalUserKey() const = 0;
99 }; 106 };
100 107
101 } // namespace chromeos 108 } // namespace chromeos
102 109
103 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 110 #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