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

Side by Side Diff: net/url_request/report_sender.h

Issue 2265873002: Adjust callers and networking delegates in net/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: rebased on top of URLRequest::Read CL 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 unified diff | Download patch
« no previous file with comments | « net/test/spawned_test_server/spawner_communicator.cc ('k') | net/url_request/report_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_REPORT_SENDER_H_ 5 #ifndef NET_URL_REQUEST_REPORT_SENDER_H_
6 #define NET_URL_REQUEST_REPORT_SENDER_H_ 6 #define NET_URL_REQUEST_REPORT_SENDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 CookiesPreference cookies_preference, 51 CookiesPreference cookies_preference,
52 const ErrorCallback& error_callback); 52 const ErrorCallback& error_callback);
53 53
54 ~ReportSender() override; 54 ~ReportSender() override;
55 55
56 // TransportSecurityState::ReportSenderInterface implementation. 56 // TransportSecurityState::ReportSenderInterface implementation.
57 void Send(const GURL& report_uri, const std::string& report) override; 57 void Send(const GURL& report_uri, const std::string& report) override;
58 void SetErrorCallback(const ErrorCallback& error_callback) override; 58 void SetErrorCallback(const ErrorCallback& error_callback) override;
59 59
60 // net::URLRequest::Delegate implementation. 60 // net::URLRequest::Delegate implementation.
61 void OnResponseStarted(URLRequest* request) override; 61 void OnResponseStarted(URLRequest* request, int net_error) override;
62 void OnReadCompleted(URLRequest* request, int bytes_read) override; 62 void OnReadCompleted(URLRequest* request, int bytes_read) override;
63 63
64 private: 64 private:
65 net::URLRequestContext* const request_context_; 65 net::URLRequestContext* const request_context_;
66 66
67 CookiesPreference cookies_preference_; 67 CookiesPreference cookies_preference_;
68 68
69 // Owns the contained requests. 69 // Owns the contained requests.
70 std::set<URLRequest*> inflight_requests_; 70 std::set<URLRequest*> inflight_requests_;
71 71
72 // Called when a sent report results in an error. 72 // Called when a sent report results in an error.
73 ErrorCallback error_callback_; 73 ErrorCallback error_callback_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(ReportSender); 75 DISALLOW_COPY_AND_ASSIGN(ReportSender);
76 }; 76 };
77 77
78 } // namespace net 78 } // namespace net
79 79
80 #endif // NET_URL_REQUEST_REPORT_SENDER_H_ 80 #endif // NET_URL_REQUEST_REPORT_SENDER_H_
OLDNEW
« no previous file with comments | « net/test/spawned_test_server/spawner_communicator.cc ('k') | net/url_request/report_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698