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

Unified Diff: components/certificate_reporting/error_reporter.h

Issue 2483993002: Add report_id to ErrorReporter interface. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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: components/certificate_reporting/error_reporter.h
diff --git a/components/certificate_reporting/error_reporter.h b/components/certificate_reporting/error_reporter.h
index c4a15d6ef6bc39731b60df69d1eedfc36b0580c4..7b2e1167adeb63b9fecb8ea349c2d0657f590aab 100644
--- a/components/certificate_reporting/error_reporter.h
+++ b/components/certificate_reporting/error_reporter.h
@@ -61,7 +61,9 @@ class ErrorReporter {
// unsupported platforms, callers must send extended reporting reports
// over SSL.
virtual void SendExtendedReportingReport(
- const std::string& serialized_report);
+ const std::string& serialized_report,
+ const base::Callback<void()>& success_callback,
+ const base::Callback<void(const GURL&, int)>& error_callback);
// Used by tests.
static bool DecryptErrorReport(
@@ -69,10 +71,12 @@ class ErrorReporter {
const EncryptedCertLoggerRequest& encrypted_report,
std::string* decrypted_serialized_report);
+ void set_upload_url_for_testing(const GURL& url) { upload_url_ = url; }
+
private:
std::unique_ptr<net::ReportSender> certificate_report_sender_;
- const GURL upload_url_;
+ GURL upload_url_;
const uint8_t* server_public_key_;
const uint32_t server_public_key_version_;
« no previous file with comments | « chrome/browser/ssl/certificate_reporting_test_utils.cc ('k') | components/certificate_reporting/error_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698