| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 std::map<std::string, DomainState> enabled_hosts_; | 96 std::map<std::string, DomainState> enabled_hosts_; |
| 97 | 97 |
| 98 // Protect access to our data members with this lock. | 98 // Protect access to our data members with this lock. |
| 99 Lock lock_; | 99 Lock lock_; |
| 100 | 100 |
| 101 // Our delegate who gets notified when we are dirtied, or NULL. | 101 // Our delegate who gets notified when we are dirtied, or NULL. |
| 102 Delegate* delegate_; | 102 Delegate* delegate_; |
| 103 | 103 |
| 104 static std::string CanonicaliseHost(const std::string& host); | 104 static std::string CanonicaliseHost(const std::string& host); |
| 105 | 105 |
| 106 // GetBuiltin returns true and fills out *result if the given hostname is |
| 107 // built in as an STS site. |
| 108 bool GetBuiltin(DomainState* result, const std::string& host); |
| 109 |
| 106 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); | 110 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); |
| 107 }; | 111 }; |
| 108 | 112 |
| 109 } // namespace net | 113 } // namespace net |
| 110 | 114 |
| 111 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_ | 115 #endif // NET_BASE_TRANSPORT_SECURITY_STATE_H_ |
| OLD | NEW |