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

Unified Diff: net/http/transport_security_state.h

Issue 1407263010: [Cronet] Public key pinning for Java API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes and rebase Created 5 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 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 d46993b1782d39e801eebf94738cabf853826f20..9e39c7aeca8c6d7dccc1b225149effb6db2a25e4 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -292,8 +292,10 @@ class NET_EXPORT TransportSecurityState
const base::Time& expiry,
bool include_subdomains);
- // Adds explicitly-specified data as if it was processed from an
- // HPKP header (used for net-internals and unit tests).
+ // Adds explicitly-specified data as if it was processed from an HPKP header.
+ // Note: This method will persist the HPKP if a Delegate is present. Make sure
+ // that the delegate is nullptr if the persistence is not desired.
+ // See |SetDelegate| method for more details.
void AddHPKP(const std::string& host,
const base::Time& expiry,
bool include_subdomains,

Powered by Google App Engine
This is Rietveld 408576698