diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 01:10:15 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 01:10:15 +0000 |
commit | 359dfa3e661f583b6f564b6a14025fd0e2a6b669 (patch) | |
tree | 97e6c0f60069c2a1ad51cd950972fa023301c82f /content/common/resource_dispatcher.h | |
parent | bd868f4a83aa3b69e699a195edd92a55af5b8f6a (diff) | |
download | chromium_src-359dfa3e661f583b6f564b6a14025fd0e2a6b669.zip chromium_src-359dfa3e661f583b6f564b6a14025fd0e2a6b669.tar.gz chromium_src-359dfa3e661f583b6f564b6a14025fd0e2a6b669.tar.bz2 |
Move ResourceDispatcherHostDelegate to content\public\common. I've added a set delegate function on ChildThread (which will soon be on content::ChildThread interface) so that we don't have to expose ResourceDispatcher to embedders.
BUG=98716
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104832
Review URL: http://codereview.chromium.org/8224019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/resource_dispatcher.h')
-rw-r--r-- | content/common/resource_dispatcher.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h index fd400fe..2200282 100644 --- a/content/common/resource_dispatcher.h +++ b/content/common/resource_dispatcher.h @@ -19,9 +19,12 @@ #include "ipc/ipc_channel.h" #include "webkit/glue/resource_loader_bridge.h" -class ResourceDispatcherDelegate; struct ResourceResponseHead; +namespace content { +class ResourceDispatcherDelegate; +} + // This class serves as a communication interface between the // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in // the child process. It can be used from any child process. @@ -61,7 +64,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener { // This does not take ownership of the delegate. It is expected that the // delegate have a longer lifetime than the ResourceDispatcher. - void set_delegate(ResourceDispatcherDelegate* delegate) { + void set_delegate(content::ResourceDispatcherDelegate* delegate) { delegate_ = delegate; } @@ -153,7 +156,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener { ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; - ResourceDispatcherDelegate* delegate_; + content::ResourceDispatcherDelegate* delegate_; DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); }; |