| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |