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

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

Issue 25536005: Clean up ResourceHandler API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 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: content/browser/loader/async_resource_handler.h
diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h
index 0992841612746a7c0cc8288d3d4456fcddb6b2fa..4d980d277f91df88d9a041cd85614e9a041066d0 100644
--- a/content/browser/loader/async_resource_handler.h
+++ b/content/browser/loader/async_resource_handler.h
@@ -50,7 +50,7 @@ class AsyncResourceHandler : public ResourceHandler,
const GURL& url,
bool* defer) OVERRIDE;
virtual bool OnWillRead(int request_id,
- net::IOBuffer** buf,
+ scoped_refptr<net::IOBuffer>* buf,
int* buf_size,
int min_size) OVERRIDE;
virtual bool OnReadCompleted(int request_id,
@@ -73,7 +73,6 @@ class AsyncResourceHandler : public ResourceHandler,
void ResumeIfDeferred();
scoped_refptr<ResourceBuffer> buffer_;
- net::URLRequest* request_;
ResourceDispatcherHostImpl* rdh_;
// Number of messages we've sent to the renderer that we haven't gotten an
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698