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 NET_BASE_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ | 5 #ifndef NET_BASE_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ |
6 #define NET_BASE_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ | 6 #define NET_BASE_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/callback_forward.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/base/origin_bound_cert_store.h" | 18 #include "net/base/origin_bound_cert_store.h" |
19 | 19 |
20 class Task; | 20 class Task; |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 // This class is the system for storing and retrieving origin bound certs. | 24 // This class is the system for storing and retrieving origin bound certs. |
25 // Modelled after the CookieMonster class, it has an in-memory cert store, | 25 // Modeled after the CookieMonster class, it has an in-memory cert store, |
26 // and synchronizes origin bound certs to an optional permanent storage that | 26 // and synchronizes origin bound certs to an optional permanent storage that |
27 // implements the PersistentStore interface. The use case is described in | 27 // implements the PersistentStore interface. The use case is described in |
28 // http://balfanz.github.com/tls-obc-spec/draft-balfanz-tls-obc-00.html | 28 // http://balfanz.github.com/tls-obc-spec/draft-balfanz-tls-obc-00.html |
29 // | 29 // |
30 // This class can be accessed by multiple threads. For example, it can be used | 30 // This class can be accessed by multiple threads. For example, it can be used |
31 // by IO and origin bound cert management UI. | 31 // by IO and origin bound cert management UI. |
32 class NET_EXPORT DefaultOriginBoundCertStore : public OriginBoundCertStore { | 32 class NET_EXPORT DefaultOriginBoundCertStore : public OriginBoundCertStore { |
33 public: | 33 public: |
34 class PersistentStore; | 34 class PersistentStore; |
35 | 35 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 protected: | 144 protected: |
145 PersistentStore(); | 145 PersistentStore(); |
146 | 146 |
147 private: | 147 private: |
148 DISALLOW_COPY_AND_ASSIGN(PersistentStore); | 148 DISALLOW_COPY_AND_ASSIGN(PersistentStore); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace net | 151 } // namespace net |
152 | 152 |
153 #endif // NET_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ | 153 #endif // NET_DEFAULT_ORIGIN_BOUND_CERT_STORE_H_ |
OLD | NEW |