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

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, 4 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/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;
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,

Powered by Google App Engine
This is Rietveld 408576698