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

Unified Diff: net/url_request/report_sender.h

Issue 2365353004: Add Content-Type header to net::ReportSender reports (Closed)
Patch Set: update some unit test subclasses 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
Index: net/url_request/report_sender.h
diff --git a/net/url_request/report_sender.h b/net/url_request/report_sender.h
index f74899fd4c337511c618f3d319b9664e10e11ed7..4b8cebad26731916a784c2528b138cebd19086ad 100644
--- a/net/url_request/report_sender.h
+++ b/net/url_request/report_sender.h
@@ -55,6 +55,7 @@ class NET_EXPORT ReportSender
// TransportSecurityState::ReportSenderInterface implementation.
void Send(const GURL& report_uri, const std::string& report) override;
+ void SetContentTypeHeader(const std::string& content_type) override;
void SetErrorCallback(const ErrorCallback& error_callback) override;
// net::URLRequest::Delegate implementation.
@@ -69,6 +70,10 @@ class NET_EXPORT ReportSender
// Owns the contained requests.
std::set<URLRequest*> inflight_requests_;
+ // The value of the Content-Type header that should be sent on
+ // outgoing reports.
+ std::string content_type_;
+
// Called when a sent report results in an error.
ErrorCallback error_callback_;

Powered by Google App Engine
This is Rietveld 408576698