OLD | NEW |
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 NET_CERT_CERT_DATABASE_H_ | 5 #ifndef NET_CERT_CERT_DATABASE_H_ |
6 #define NET_CERT_CERT_DATABASE_H_ | 6 #define NET_CERT_CERT_DATABASE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
13 | 13 |
14 template <typename T> struct DefaultSingletonTraits; | 14 template <typename T> |
15 template <class ObserverType> class ObserverListThreadSafe; | 15 struct DefaultSingletonTraits; |
| 16 template <class ObserverType> |
| 17 class ObserverListThreadSafe; |
16 | 18 |
17 namespace net { | 19 namespace net { |
18 | 20 |
19 class NSSCertDatabase; | 21 class NSSCertDatabase; |
20 | 22 |
21 // This class provides cross-platform functions to verify and add user | 23 // This class provides cross-platform functions to verify and add user |
22 // certificates, and to observe changes to the underlying certificate stores. | 24 // certificates, and to observe changes to the underlying certificate stores. |
23 | 25 |
24 // TODO(gauravsh): This class could be augmented with methods | 26 // TODO(gauravsh): This class could be augmented with methods |
25 // for all operations that manipulate the underlying system | 27 // for all operations that manipulate the underlying system |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 friend class Notifier; | 119 friend class Notifier; |
118 scoped_ptr<Notifier> notifier_; | 120 scoped_ptr<Notifier> notifier_; |
119 #endif | 121 #endif |
120 | 122 |
121 DISALLOW_COPY_AND_ASSIGN(CertDatabase); | 123 DISALLOW_COPY_AND_ASSIGN(CertDatabase); |
122 }; | 124 }; |
123 | 125 |
124 } // namespace net | 126 } // namespace net |
125 | 127 |
126 #endif // NET_CERT_CERT_DATABASE_H_ | 128 #endif // NET_CERT_CERT_DATABASE_H_ |
OLD | NEW |