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. |