| 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_HTTP_TRANSPORT_SECURITY_STATE_H_ | 5 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_H_ |
| 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_ | 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
| 18 #include "net/base/x509_certificate.h" | 18 #include "net/cert/x509_cert_types.h" |
| 19 #include "net/base/x509_cert_types.h" | 19 #include "net/cert/x509_certificate.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 class SSLInfo; | 23 class SSLInfo; |
| 24 | 24 |
| 25 // Tracks which hosts have enabled strict transport security and/or public | 25 // Tracks which hosts have enabled strict transport security and/or public |
| 26 // key pins. | 26 // key pins. |
| 27 // | 27 // |
| 28 // This object manages the in-memory store. Register a Delegate with | 28 // This object manages the in-memory store. Register a Delegate with |
| 29 // |SetDelegate| to persist the state to disk. | 29 // |SetDelegate| to persist the state to disk. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 DomainStateMap forced_hosts_; | 316 DomainStateMap forced_hosts_; |
| 317 | 317 |
| 318 Delegate* delegate_; | 318 Delegate* delegate_; |
| 319 | 319 |
| 320 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); | 320 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 } // namespace net | 323 } // namespace net |
| 324 | 324 |
| 325 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ | 325 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ |
| OLD | NEW |