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

Unified Diff: net/base/transport_security_state.h

Issue 8302019: Recommit fraudulent certificate reporting infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | net/base/transport_security_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/transport_security_state.h
===================================================================
--- net/base/transport_security_state.h (revision 105626)
+++ net/base/transport_security_state.h (working copy)
@@ -113,6 +113,21 @@
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);
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | net/base/transport_security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698