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

Unified Diff: net/http/transport_security_state.h

Issue 1850853004: Use CertificateReportSender error callback to record HPKP UMA metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eroman comments Created 4 years, 8 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 | « no previous file | net/http/transport_security_state.cc » ('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 a35e18595db0ddf982c6d963c959b0bbcdf5faf5..84b229bbd9523ca87c648acef6ca03680e02b2b0 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -12,6 +12,7 @@
#include <utility>
#include <vector>
+#include "base/callback.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/threading/non_thread_safe.h"
@@ -203,6 +204,10 @@ class NET_EXPORT TransportSecurityState
// Sends the given serialized |report| to |report_uri|.
virtual void Send(const GURL& report_uri, const std::string& report) = 0;
+ // Sets a callback to be called when report sending fails.
+ virtual void SetErrorCallback(
+ const base::Callback<void(const GURL&, int)>& error_callback) = 0;
+
protected:
virtual ~ReportSender() {}
};
« no previous file with comments | « no previous file | net/http/transport_security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698