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

Unified Diff: content/browser/renderer_host/resource_handler.h

Issue 8680036: Move ResourceResponse struct into the Content API, since it's used in Chrome. While at it, I also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add gypi changes Created 9 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
Index: content/browser/renderer_host/resource_handler.h
===================================================================
--- content/browser/renderer_host/resource_handler.h (revision 111374)
+++ content/browser/renderer_host/resource_handler.h (working copy)
@@ -17,14 +17,17 @@
#include "content/public/browser/browser_thread.h"
+class GURL;
+
+namespace content {
+struct ResourceResponse;
+}
+
namespace net {
class IOBuffer;
class URLRequestStatus;
} // namespace net
-struct ResourceResponse;
-class GURL;
-
// The resource dispatcher host uses this interface to push load events to the
// renderer, allowing for differences in the types of IPC messages generated.
// See the implementations of this interface defined below.
@@ -41,12 +44,12 @@
// false. Set |*defer| to true to defer the redirect. The redirect may be
// followed later on via ResourceDispatcherHost::FollowDeferredRedirect.
virtual bool OnRequestRedirected(int request_id, const GURL& url,
- ResourceResponse* response,
+ content::ResourceResponse* response,
bool* defer) = 0;
// Response headers and meta data are available.
virtual bool OnResponseStarted(int request_id,
- ResourceResponse* response) = 0;
+ content::ResourceResponse* response) = 0;
// Called before the net::URLRequest for |request_id| (whose url is |url|) is
// to be started. If the handler returns false, then the request is cancelled.

Powered by Google App Engine
This is Rietveld 408576698