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

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: pare down reporter interface to just Send() 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
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..6109381dcb1840016a40f0600ba380ec5630e4ed 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 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();

Powered by Google App Engine
This is Rietveld 408576698