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

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

Issue 460135: STS: add chrome.google.com to the built in STS list. (Closed)
Patch Set: Created 11 years 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/base/transport_security_state.cc » ('j') | net/base/transport_security_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698