diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 01:55:13 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 01:55:13 +0000 |
commit | 4566f13fe843c0821dbce19d7ea5e8aece8afe4a (patch) | |
tree | 586c6006431604f6b159daca30fcdfe4913ad996 /chrome/browser/plugin_process_host.h | |
parent | 3f366001f70b1ef4b8884796970cefb0769c469f (diff) | |
download | chromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.zip chromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.tar.gz chromium_src-4566f13fe843c0821dbce19d7ea5e8aece8afe4a.tar.bz2 |
Stop having renderers use both pids and a monotonically increasing "host_id". This allows ResourceDispatcher to be used by child processes other than renderers. I've done minor related cleanup on the way to make the code simpler.
Review URL: http://codereview.chromium.org/42054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host.h')
-rw-r--r-- | chrome/browser/plugin_process_host.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/plugin_process_host.h b/chrome/browser/plugin_process_host.h index 48c05e9f..6885092 100644 --- a/chrome/browser/plugin_process_host.h +++ b/chrome/browser/plugin_process_host.h @@ -8,6 +8,7 @@ #include "build/build_config.h" #include <set> +#include <queue> #include <vector> #include "base/basictypes.h" @@ -94,7 +95,7 @@ class PluginProcessHost : public ChildProcessHost, const std::string& mime_type, IPC::Message* reply_msg); // Message handlers. - void OnChannelCreated(int process_id, const std::wstring& channel_name); + void OnChannelCreated(const std::wstring& channel_name); void OnDownloadUrl(const std::string& url, int source_pid, gfx::NativeWindow caller_window); void OnGetPluginFinderUrl(std::string* plugin_finder_url); @@ -134,7 +135,7 @@ class PluginProcessHost : public ChildProcessHost, // These are the channel requests that we have already sent to // the plugin process, but haven't heard back about yet. - std::vector<ChannelRequest> sent_requests_; + std::queue<ChannelRequest> sent_requests_; // Information about the plugin. WebPluginInfo info_; |