OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TRANSPORT_SECURITY_STATE_H_ | 5 #ifndef NET_BASE_TRANSPORT_SECURITY_STATE_H_ |
6 #define NET_BASE_TRANSPORT_SECURITY_STATE_H_ | 6 #define NET_BASE_TRANSPORT_SECURITY_STATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/lock.h" | |
15 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
16 #include "base/time.h" | 15 #include "base/time.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 | 18 |
20 // TransportSecurityState | 19 // TransportSecurityState |
21 // | 20 // |
22 // Tracks which hosts have enabled *-Transport-Security. This object manages | 21 // Tracks which hosts have enabled *-Transport-Security. This object manages |
23 // the in-memory store. A separate object must register itself with this object | 22 // the in-memory store. A separate object must register itself with this object |
24 // in order to persist the state to disk. | 23 // in order to persist the state to disk. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 static std::string CanonicaliseHost(const std::string& host); | 109 static std::string CanonicaliseHost(const std::string& host); |
111 static bool IsPreloadedSTS(const std::string& canonicalised_host, | 110 static bool IsPreloadedSTS(const std::string& canonicalised_host, |
112 bool* out_include_subdomains); | 111 bool* out_include_subdomains); |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); | 113 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); |
115 }; | 114 }; |
116 | 115 |
117 } // namespace net | 116 } // namespace net |
118 | 117 |
119 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_ | 118 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_ |
OLD | NEW |