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

Unified Diff: net/base/transport_security_state.h

Issue 6500010: HSTS: add net-internals UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: net/base/transport_security_state.h
diff --git a/net/base/transport_security_state.h b/net/base/transport_security_state.h
index 768ccbbc7c57774e405c524c52628c7143aec79d..a0c5a9f87cf878a0d1651c69e7a9827345ac25df 100644
--- a/net/base/transport_security_state.h
+++ b/net/base/transport_security_state.h
@@ -47,17 +47,26 @@ class TransportSecurityState :
DomainState()
: mode(MODE_STRICT),
created(base::Time::Now()),
- include_subdomains(false) { }
+ include_subdomains(false),
+ preloaded(false) { }
Mode mode;
base::Time created; // when this host entry was first created
base::Time expiry; // the absolute time (UTC) when this record expires
bool include_subdomains; // subdomains included?
+
+ // The follow members are not valid when stored in _enabled_hosts.
eroman 2011/02/16 20:12:45 typo --> enabled_hosts_
mmenke 2011/02/16 20:22:49 nit: enabled_hosts_ -> |enabled_hosts_|
agl 2011/02/16 22:46:22 Done.
+ bool preloaded; // is this a preloaded entry?
+ std::string domain; // the domain which matched
};
// Enable TransportSecurity for |host|.
void EnableHost(const std::string& host, const DomainState& state);
+ // Delete any entry for |host|. If |host| doesn't have an exact entry then no
+ // action is taken. Returns true iff an entry was deleted.
+ bool DeleteHost(const std::string& host);
+
// Returns true if |host| has TransportSecurity enabled. If that case,
// *result is filled out.
bool IsEnabledForHost(DomainState* result, const std::string& host);

Powered by Google App Engine
This is Rietveld 408576698