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

Unified Diff: net/base/network_delegate_impl.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: more fixes 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/network_delegate_impl.h
diff --git a/net/base/network_delegate_impl.h b/net/base/network_delegate_impl.h
index b2d56c770d5d802960ee2bf520162acd32115951..88ff64044fb03b33485a865b1ef083410a73008d 100644
--- a/net/base/network_delegate_impl.h
+++ b/net/base/network_delegate_impl.h
@@ -104,6 +104,8 @@ class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
void OnBeforeRedirect(URLRequest* request, const GURL& new_location) override;
// This corresponds to URLRequestDelegate::OnResponseStarted.
+ void OnResponseStarted(URLRequest* request, int net_error) override;
+ // Deprecated.
void OnResponseStarted(URLRequest* request) override;
// Called when bytes are received from the network, such as after receiving
@@ -129,6 +131,8 @@ class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
// Indicates that the URL request has been completed or failed.
// |started| indicates whether the request has been started. If false,
// some information like the socket address is not available.
+ void OnCompleted(URLRequest* request, bool started, int net_error) override;
+ // Deprecated.
void OnCompleted(URLRequest* request, bool started) override;
// Called when an URLRequest is being destroyed. Note that the request is

Powered by Google App Engine
This is Rietveld 408576698