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

Unified Diff: net/http/transport_security_state.h

Issue 1211363005: Parse HPKP report-uri and persist in TransportSecurityPersister (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 5 years, 6 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 2cbd5ef52ba7a34e6af43d880d323f6973cab36e..17885ba80f14dcfc625bc554e92c5174638041ae 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -113,6 +113,10 @@ class NET_EXPORT TransportSecurityState
// The domain which matched during a search for this DomainState entry.
// Updated by |GetDynamicDomainState| and |GetStaticDomainState|.
std::string domain;
+
+ // Optional; a uri-reference indicating where reports should be
+ // sent when this pin is violated.
+ std::string report_uri;
};
// Takes a set of SubjectPublicKeyInfo |hashes| and returns true if:
@@ -254,7 +258,8 @@ class NET_EXPORT TransportSecurityState
void AddHPKP(const std::string& host,
const base::Time& expiry,
bool include_subdomains,
- const HashValueVector& hashes);
+ const HashValueVector& hashes,
+ const std::string& report_uri);
// Returns true iff we have any static public key pins for the |host| and
// iff its set of required pins is the set we expect for Google
@@ -310,7 +315,8 @@ class NET_EXPORT TransportSecurityState
const base::Time& last_observed,
const base::Time& expiry,
bool include_subdomains,
- const HashValueVector& hashes);
+ const HashValueVector& hashes,
+ const std::string& report_uri);
// Enable TransportSecurity for |host|. |state| supercedes any previous
// state for the |host|, including static entries.

Powered by Google App Engine
This is Rietveld 408576698