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

Unified Diff: net/http/transport_security_state.h

Issue 1212973002: Add net::CertificateReportSender for handling cert report sending (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing NET_EXPORT Created 5 years, 5 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/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc ('k') | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state.h
diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h
index 2f97d9d34e5a6a20be27b1bcb1b96bbbad56c187..e82252a2792019c692eb72f658092c0b7b147f61 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -46,6 +46,16 @@ class NET_EXPORT TransportSecurityState
virtual ~Delegate() {}
};
+ // An interface for asynchronously sending HPKP violation reports.
+ class NET_EXPORT ReportSender {
+ public:
+ // Sends the given serialized |report| to |report_uri|.
+ virtual void Send(const GURL& report_uri, const std::string& report) = 0;
+
+ protected:
+ virtual ~ReportSender() {}
+ };
+
TransportSecurityState();
~TransportSecurityState();
« no previous file with comments | « chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698