summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_process_host.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 00:52:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 00:52:35 +0000
commitdabe607133c5b62e6b0134017f35cb87d0d4f3b6 (patch)
treedb5d35947dcfa2810c7e7e19364ecaae37aa0912 /chrome/browser/plugin_process_host.h
parenta91baaa1bab5fe3de395aad464015a098290a46b (diff)
downloadchromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.zip
chromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.tar.gz
chromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.tar.bz2
Hide the details about ResourceDispatcherHost messages from child processes. The usage of RDH is now like RD, the client sends the message to RDH to see if it should handle it. I added methods to the Receiver interface so that RDH can get to the process id/handle/type when starting requests.
Review URL: http://codereview.chromium.org/42202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host.h')
-rw-r--r--chrome/browser/plugin_process_host.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/chrome/browser/plugin_process_host.h b/chrome/browser/plugin_process_host.h
index 6885092..bc15ca2 100644
--- a/chrome/browser/plugin_process_host.h
+++ b/chrome/browser/plugin_process_host.h
@@ -20,7 +20,6 @@
#include "chrome/common/child_process_host.h"
#include "webkit/glue/webplugin.h"
-class ResourceDispatcherHost;
class URLRequestContext;
struct ViewHostMsg_Resource_Request;
class GURL;
@@ -36,7 +35,7 @@ class GURL;
class PluginProcessHost : public ChildProcessHost,
public ResolveProxyMsgHelper::Delegate {
public:
- PluginProcessHost(MessageLoop* main_message_loop);
+ PluginProcessHost();
~PluginProcessHost();
// Initialize the new plugin process, returning true on success. This must
@@ -89,6 +88,11 @@ class PluginProcessHost : public ChildProcessHost,
private:
friend class PluginResolveProxyHelper;
+ // ResourceDispatcherHost::Receiver implementation:
+ virtual URLRequestContext* GetRequestContext(
+ uint32 request_id,
+ const ViewHostMsg_Resource_Request& request_data);
+
// Sends a message to the plugin process to request creation of a new channel
// for the given mime type.
void RequestPluginChannel(ResourceMessageFilter* renderer_message_filter,
@@ -99,15 +103,6 @@ class PluginProcessHost : public ChildProcessHost,
void OnDownloadUrl(const std::string& url, int source_pid,
gfx::NativeWindow caller_window);
void OnGetPluginFinderUrl(std::string* plugin_finder_url);
- void OnRequestResource(const IPC::Message& message,
- int request_id,
- const ViewHostMsg_Resource_Request& request);
- void OnCancelRequest(int request_id);
- void OnDataReceivedACK(int request_id);
- void OnUploadProgressACK(int request_id);
- void OnSyncLoad(int request_id,
- const ViewHostMsg_Resource_Request& request,
- IPC::Message* sync_result);
void OnGetCookies(uint32 request_context, const GURL& url,
std::string* cookies);
void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);