| 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> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 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. |
| 30 // | 30 // |
| 31 // HTTP strict transport security (HSTS) is defined in | 31 // HTTP strict transport security (HSTS) is defined in |
| 32 // http://tools.ietf.org/html/ietf-websec-strict-transport-sec, and | 32 // http://tools.ietf.org/html/ietf-websec-strict-transport-sec, and |
| 33 // HTTP-based dynamic public key pinning (HPKP) is defined in | 33 // HTTP-based dynamic public key pinning (HPKP) is defined in |
| 34 // http://tools.ietf.org/html/ietf-websec-key-pinning. | 34 // http://tools.ietf.org/html/ietf-websec-key-pinning. |
| 35 class NET_EXPORT TransportSecurityState | 35 class NET_EXPORT TransportSecurityState |
| 36 : NON_EXPORTED_BASE(public base::NonThreadSafe) { | 36 : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 37 public: | 37 public: |
| 38 class Delegate { | 38 class NET_EXPORT Delegate { |
| 39 public: | 39 public: |
| 40 // This function may not block and may be called with internal locks held. | 40 // This function may not block and may be called with internal locks held. |
| 41 // Thus it must not reenter the TransportSecurityState object. | 41 // Thus it must not reenter the TransportSecurityState object. |
| 42 virtual void StateIsDirty(TransportSecurityState* state) = 0; | 42 virtual void StateIsDirty(TransportSecurityState* state) = 0; |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 virtual ~Delegate() {} | 45 virtual ~Delegate() {} |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 TransportSecurityState(); | 48 TransportSecurityState(); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 DomainStateMap enabled_hosts_; | 319 DomainStateMap enabled_hosts_; |
| 320 | 320 |
| 321 Delegate* delegate_; | 321 Delegate* delegate_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); | 323 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace net | 326 } // namespace net |
| 327 | 327 |
| 328 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ | 328 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ |
| OLD | NEW |