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

Unified Diff: content/browser/loader/resource_loader.h

Issue 2476163003: Refactor ResourceHandler API. (Closed)
Patch Set: Minor cleanups, one real fix Created 4 years, 1 month 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/loader/resource_handler.h ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader.h
diff --git a/content/browser/loader/resource_loader.h b/content/browser/loader/resource_loader.h
index 6ebcd2de50b08624c9cf4cb2eae356f015916135..df1a642f7153b5733aeb0bed22d35767ed8c2b5c 100644
--- a/content/browser/loader/resource_loader.h
+++ b/content/browser/loader/resource_loader.h
@@ -82,11 +82,14 @@ class CONTENT_EXPORT ResourceLoader : public net::URLRequest::Delegate,
void CancelWithError(int error_code) override;
void StartRequestInternal();
- void CancelRequestInternal(int error, bool from_renderer);
+
+ // Posts a task to cancel the request, for use by ResourceController methods.
+ void CancelRequestAsync(int error, bool ignore);
+
+ void CancelRequestInternal(int error, bool from_renderer, bool ignore);
void CompleteResponseStarted();
void StartReading(bool is_continuation);
void ResumeReading();
- void ReadMore(int* bytes_read);
// Passes a read result to the handler.
void CompleteRead(int bytes_read);
void ResponseCompleted();
« no previous file with comments | « content/browser/loader/resource_handler.h ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698