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/child/resource_dispatcher.h

Issue 218973002: Extract Peer interface out of ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASED Created 6 years, 9 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index e4a2d4f6c61d418ea2f8122504e8cfc4cf9e0b64..7f7911e71e35660c57cbf7c74b508359cd076a04 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -18,12 +18,18 @@
#include "content/common/content_export.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
-#include "webkit/child/resource_loader_bridge.h"
+#include "net/base/request_priority.h"
#include "webkit/common/resource_type.h"
struct ResourceMsg_RequestCompleteData;
+namespace webkit_glue {
+class ResourceLoaderBridge;
+struct ResourceResponseInfo;
+}
+
namespace content {
+class RequestPeer;
class ResourceDispatcherDelegate;
struct RequestInfo;
struct ResourceResponseHead;
@@ -48,7 +54,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
// Adds a request from the pending_requests_ list, returning the new
// requests' ID
- int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback,
+ int AddPendingRequest(RequestPeer* callback,
ResourceType::Type resource_type,
int origin_pid,
const GURL& frame_origin,
@@ -90,7 +96,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
struct PendingRequestInfo {
PendingRequestInfo();
- PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer,
+ PendingRequestInfo(RequestPeer* peer,
ResourceType::Type resource_type,
int origin_pid,
const GURL& frame_origin,
@@ -98,7 +104,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
~PendingRequestInfo();
- webkit_glue::ResourceLoaderBridge::Peer* peer;
+ RequestPeer* peer;
ResourceType::Type resource_type;
// The PID of the original process which issued this request. This gets
// non-zero only for a request proxied by another renderer, particularly
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698