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

Unified Diff: content/browser/loader/layered_resource_handler.cc

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/layered_resource_handler.cc
diff --git a/content/browser/loader/layered_resource_handler.cc b/content/browser/loader/layered_resource_handler.cc
index 872bc7a422d773469ecceea984b6f9e4b51116a3..0ad0cebcc82fc9ea81ae8e3358d4573968b61fed 100644
--- a/content/browser/loader/layered_resource_handler.cc
+++ b/content/browser/loader/layered_resource_handler.cc
@@ -9,8 +9,10 @@
namespace content {
LayeredResourceHandler::LayeredResourceHandler(
+ net::URLRequest* request,
scoped_ptr<ResourceHandler> next_handler)
- : next_handler_(next_handler.Pass()) {
+ : ResourceHandler(request),
+ next_handler_(next_handler.Pass()) {
}
LayeredResourceHandler::~LayeredResourceHandler() {
@@ -54,8 +56,10 @@ bool LayeredResourceHandler::OnWillStart(int request_id, const GURL& url,
return next_handler_->OnWillStart(request_id, url, defer);
}
-bool LayeredResourceHandler::OnWillRead(int request_id, net::IOBuffer** buf,
- int* buf_size, int min_size) {
+bool LayeredResourceHandler::OnWillRead(int request_id,
+ scoped_refptr<net::IOBuffer>* buf,
+ int* buf_size,
+ int min_size) {
DCHECK(next_handler_.get());
return next_handler_->OnWillRead(request_id, buf, buf_size, min_size);
}
« no previous file with comments | « content/browser/loader/layered_resource_handler.h ('k') | content/browser/loader/redirect_to_file_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698