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

Unified Diff: trunk/src/content/browser/loader/layered_resource_handler.h

Issue 26472004: Revert 227318 "Clean up ResourceHandler API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/content/browser/loader/layered_resource_handler.h
===================================================================
--- trunk/src/content/browser/loader/layered_resource_handler.h (revision 227593)
+++ trunk/src/content/browser/loader/layered_resource_handler.h (working copy)
@@ -9,18 +9,13 @@
#include "content/browser/loader/resource_handler.h"
#include "content/common/content_export.h"
-namespace net {
-class URLRequest;
-} // namespace net
-
namespace content {
// A ResourceHandler that simply delegates all calls to a next handler. This
// class is intended to be subclassed.
class CONTENT_EXPORT LayeredResourceHandler : public ResourceHandler {
public:
- LayeredResourceHandler(net::URLRequest* request,
- scoped_ptr<ResourceHandler> next_handler);
+ explicit LayeredResourceHandler(scoped_ptr<ResourceHandler> next_handler);
virtual ~LayeredResourceHandler();
// ResourceHandler implementation:
@@ -35,9 +30,7 @@
bool* defer) OVERRIDE;
virtual bool OnWillStart(int request_id, const GURL& url,
bool* defer) OVERRIDE;
- virtual bool OnWillRead(int request_id,
- scoped_refptr<net::IOBuffer>* buf,
- int* buf_size,
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
int min_size) OVERRIDE;
virtual bool OnReadCompleted(int request_id, int bytes_read,
bool* defer) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698