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

Unified Diff: net/url_request/report_sender.h

Issue 2648713002: Add response code to the success callback of ReportSender (Closed)
Patch Set: Remove response code from error callback Created 3 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
Index: net/url_request/report_sender.h
diff --git a/net/url_request/report_sender.h b/net/url_request/report_sender.h
index a230f0603b1a9b5a769ade2f65b3e133eb509664..8334366119a61503ee06fd8494462a9825e5b0bd 100644
--- a/net/url_request/report_sender.h
+++ b/net/url_request/report_sender.h
@@ -30,8 +30,8 @@ class NET_EXPORT ReportSender
: public URLRequest::Delegate,
public TransportSecurityState::ReportSenderInterface {
public:
- using SuccessCallback = base::Callback<void()>;
- using ErrorCallback = base::Callback<void(const GURL&, int)>;
+ using SuccessCallback = base::Callback<void(int /* response_code */)>;
eroman 2017/04/25 21:02:39 Please document the expectations. - what is the r
meacer 2017/04/25 22:19:07 Yes, that's the current semantics of the success c
eroman 2017/04/25 22:41:55 My understanding of this bug is that right now the
meacer 2017/04/25 22:54:54 I might have misunderstood your original suggestio
+ using ErrorCallback = base::Callback<void(const GURL&, int /* net_error */)>;
// Represents whether or not to send cookies along with reports.
enum CookiesPreference { SEND_COOKIES, DO_NOT_SEND_COOKIES };

Powered by Google App Engine
This is Rietveld 408576698