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 // TransportSecurityState maintains an in memory database containing the | 5 // TransportSecurityState maintains an in memory database containing the |
6 // list of hosts that currently have transport security enabled. This | 6 // list of hosts that currently have transport security enabled. This |
7 // singleton object deals with writing that data out to disk as needed and | 7 // singleton object deals with writing that data out to disk as needed and |
8 // loading it at startup. | 8 // loading it at startup. |
9 | 9 |
10 // At startup we need to load the transport security state from the | 10 // At startup we need to load the transport security state from the |
(...skipping 19 matching lines...) Expand all Loading... |
30 // copies the current state of the TransportSecurityState, serializes | 30 // copies the current state of the TransportSecurityState, serializes |
31 // and writes to disk. | 31 // and writes to disk. |
32 | 32 |
33 #ifndef NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ | 33 #ifndef NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ |
34 #define NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ | 34 #define NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ |
35 | 35 |
36 #include <string> | 36 #include <string> |
37 | 37 |
38 #include "base/files/file_path.h" | 38 #include "base/files/file_path.h" |
39 #include "base/files/important_file_writer.h" | 39 #include "base/files/important_file_writer.h" |
| 40 #include "base/macros.h" |
40 #include "base/memory/ref_counted.h" | 41 #include "base/memory/ref_counted.h" |
41 #include "base/memory/weak_ptr.h" | 42 #include "base/memory/weak_ptr.h" |
42 #include "net/base/net_export.h" | 43 #include "net/base/net_export.h" |
43 #include "net/http/transport_security_state.h" | 44 #include "net/http/transport_security_state.h" |
44 | 45 |
45 namespace base { | 46 namespace base { |
46 class DictionaryValue; | 47 class DictionaryValue; |
47 class SequencedTaskRunner; | 48 class SequencedTaskRunner; |
48 } | 49 } |
49 | 50 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const bool readonly_; | 141 const bool readonly_; |
141 | 142 |
142 base::WeakPtrFactory<TransportSecurityPersister> weak_ptr_factory_; | 143 base::WeakPtrFactory<TransportSecurityPersister> weak_ptr_factory_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(TransportSecurityPersister); | 145 DISALLOW_COPY_AND_ASSIGN(TransportSecurityPersister); |
145 }; | 146 }; |
146 | 147 |
147 } // namespace net | 148 } // namespace net |
148 | 149 |
149 #endif // NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ | 150 #endif // NET_HTTP_TRANSPORT_SECURITY_PERSISTER_H_ |
OLD | NEW |