diff options
author | palmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 00:54:05 +0000 |
---|---|---|
committer | palmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 00:54:05 +0000 |
commit | ce2b2ee29a7d34577d9369b42bb0063e3baf3617 (patch) | |
tree | 13d62a8bb0b1edcb8a982678f92267ee84a79850 /net/base/transport_security_state.h | |
parent | 9c8ae81d134ffa1b5364fb992a27386c9ef96937 (diff) | |
download | chromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.zip chromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.tar.gz chromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.tar.bz2 |
Revert 105614.
BUG=99185
Review URL: http://codereview.chromium.org/8289023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/transport_security_state.h')
-rw-r--r-- | net/base/transport_security_state.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/base/transport_security_state.h b/net/base/transport_security_state.h index f65da62..6832daf 100644 --- a/net/base/transport_security_state.h +++ b/net/base/transport_security_state.h @@ -113,6 +113,21 @@ class NET_EXPORT TransportSecurityState const std::string& host, bool sni_available); + // Returns true if we have a preloaded certificate pin for the |host| and if + // its set of required certificates is the set we expect for Google + // properties. If |sni_available| is true, searches the preloads defined for + // SNI-using hosts as well as the usual preload list. + // + // Note that like HasMetadata, if |host| matches both an exact entry and is a + // subdomain of another entry, the exact match determines the return value. + // + // This function is used by ChromeFraudulentCertificateReporter to determine + // whether or not we can automatically post fraudulent certificate reports to + // Google; we only do so automatically in cases when the user was trying to + // connect to Google in the first place. + static bool IsGooglePinnedProperty(const std::string& host, + bool sni_available); + // Deletes all records created since a given time. void DeleteSince(const base::Time& time); |