Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: net/http/transport_security_state.h

Issue 59693008: Give mojo_shell a TransportSecurityPersister (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sprinkle some NET_EXPORT Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/transport_security_persister_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/transport_security_persister_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698