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

Unified Diff: components/cronet/android/url_request_adapter.h

Issue 2261103002: Use modified URLRequest::Read() and delegate methods in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: comments 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
Index: components/cronet/android/url_request_adapter.h
diff --git a/components/cronet/android/url_request_adapter.h b/components/cronet/android/url_request_adapter.h
index 870ec18c21c00c228dc972d86eb2ee35b1f6a131..cf4acae85c79f40174a1fc73c552d594e134723d 100644
--- a/components/cronet/android/url_request_adapter.h
+++ b/components/cronet/android/url_request_adapter.h
@@ -124,7 +124,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
bool GetWasCached() const;
// net::URLRequest::Delegate implementation:
- void OnResponseStarted(net::URLRequest* request) override;
+ void OnResponseStarted(net::URLRequest* request, int net_error) override;
void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
void OnReceivedRedirect(net::URLRequest* request,
const net::RedirectInfo& redirect_info,
@@ -138,7 +138,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
void OnInitiateConnection();
void OnCancelRequest();
void OnRequestSucceeded();
- void OnRequestFailed();
+ void OnRequestFailed(int net_error);
void OnRequestCompleted();
void OnAppendChunk(const std::unique_ptr<char[]> bytes,
int bytes_len,
@@ -148,7 +148,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
// Handles synchronous or asynchronous read result, calls |delegate_| with
// bytes read and returns true unless request has succeeded or failed.
- bool HandleReadResult(int bytes_read);
+ bool HandleReadResult(int result);
URLRequestContextAdapter* context_;
scoped_refptr<URLRequestAdapterDelegate> delegate_;
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | components/cronet/android/url_request_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698