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

Unified Diff: net/base/layered_network_delegate.h

Issue 2262653003: Make URLRequest::Read to return net errors or bytes read instead of a bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 | « content/browser/webui/url_data_manager_backend_unittest.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index ba7ecc710f9805e3b35fa52f616aa1f2b265e44b..6c8a502e6ab059ed06f67bce3a30523252321829 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -59,11 +59,12 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
scoped_refptr<HttpResponseHeaders>* override_response_headers,
GURL* allowed_unsafe_redirect_url) final;
void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final;
- void OnResponseStarted(URLRequest* request) final;
+
+ void OnResponseStarted(URLRequest* request, int net_error) final;
battre 2016/09/29 13:07:29 Shouldn't this be "net::Error net_error" (also in
void OnNetworkBytesReceived(URLRequest* request,
int64_t bytes_received) final;
void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final;
- void OnCompleted(URLRequest* request, bool started) final;
+ void OnCompleted(URLRequest* request, bool started, int net_error) final;
void OnURLRequestDestroyed(URLRequest* request) final;
void OnPACScriptError(int line_number, const base::string16& error) final;
AuthRequiredResponse OnAuthRequired(URLRequest* request,
« no previous file with comments | « content/browser/webui/url_data_manager_backend_unittest.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698