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

Unified Diff: net/http/transport_security_state.h

Issue 19269012: Don't persist HPKP if PrivacyMode is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address codereview nit and fix compilation error in OFFICIAL_BUILD. Created 7 years, 3 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/http/transport_security_state.h
diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h
index ccbc53a087dce599fef077399374ca21efe2506f..38d497ba4ebd54f68295aaa586c217c4b548670c 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -201,6 +201,9 @@ class NET_EXPORT TransportSecurityState
// If |sni_enabled| is true, searches the static pins defined for
// SNI-using hosts as well as the rest of the pins.
//
+ // If |allow_dynamic| is true, then dynamic state is returned if present,
+ // otherwise only static state is used.
+ //
// If |host| matches both an exact entry and is a subdomain of another
// entry, the exact match determines the return value.
//
@@ -208,6 +211,7 @@ class NET_EXPORT TransportSecurityState
// entries that have expired.
bool GetDomainState(const std::string& host,
bool sni_enabled,
+ bool allow_dynamic,
DomainState* result);
// Processes an HSTS header value from the host, adding entries to

Powered by Google App Engine
This is Rietveld 408576698