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

Unified Diff: chrome/browser/safe_browsing/mock_permission_report_sender.h

Issue 2365353004: Add Content-Type header to net::ReportSender reports (Closed)
Patch Set: eroman comment Created 4 years, 3 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 | chrome/browser/safe_browsing/mock_permission_report_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/mock_permission_report_sender.h
diff --git a/chrome/browser/safe_browsing/mock_permission_report_sender.h b/chrome/browser/safe_browsing/mock_permission_report_sender.h
index fc1c92ee8c469fa8566c606caa5f1e19e242df9e..e8d6b76ca4190fe78eaeb0732320b59594adf6d7 100644
--- a/chrome/browser/safe_browsing/mock_permission_report_sender.h
+++ b/chrome/browser/safe_browsing/mock_permission_report_sender.h
@@ -17,12 +17,16 @@ class MockPermissionReportSender : public net::ReportSender {
~MockPermissionReportSender() override;
- void Send(const GURL& report_uri, const std::string& report) override;
+ void Send(const GURL& report_uri,
+ base::StringPiece content_type,
+ base::StringPiece report) override;
const GURL& latest_report_uri();
const std::string& latest_report();
+ const std::string& latest_content_type();
+
int GetAndResetNumberOfReportsSent();
void WaitForReportSent();
@@ -30,6 +34,7 @@ class MockPermissionReportSender : public net::ReportSender {
private:
GURL latest_report_uri_;
std::string latest_report_;
+ std::string latest_content_type_;
int number_of_reports_;
base::Closure quit_closure_;
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/mock_permission_report_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698