diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 03:55:40 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 03:55:40 +0000 |
commit | a0421736a8a437ff97eb7deb6050f08b75810343 (patch) | |
tree | 0df2ac04070f1fa41b1a3dfbd5582f0f9bb9817e /chrome/browser/ppapi_plugin_process_host.h | |
parent | a6d8357a9702c6ce48e15914760708c1970a03e2 (diff) | |
download | chromium_src-a0421736a8a437ff97eb7deb6050f08b75810343.zip chromium_src-a0421736a8a437ff97eb7deb6050f08b75810343.tar.gz chromium_src-a0421736a8a437ff97eb7deb6050f08b75810343.tar.bz2 |
Move the rest of the core files in chrome\browser to content\browser.
TBR=avi
Review URL: http://codereview.chromium.org/6538111
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ppapi_plugin_process_host.h')
-rw-r--r-- | chrome/browser/ppapi_plugin_process_host.h | 69 |
1 files changed, 2 insertions, 67 deletions
diff --git a/chrome/browser/ppapi_plugin_process_host.h b/chrome/browser/ppapi_plugin_process_host.h index 945195d..2a75065 100644 --- a/chrome/browser/ppapi_plugin_process_host.h +++ b/chrome/browser/ppapi_plugin_process_host.h @@ -6,73 +6,8 @@ #define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ #pragma once -#include <queue> - -#include "base/basictypes.h" -#include "base/file_path.h" -#include "chrome/browser/browser_child_process_host.h" - -class PpapiPluginProcessHost : public BrowserChildProcessHost { - public: - class Client { - public: - // Gets the information about the renderer that's requesting the channel. - virtual void GetChannelInfo(base::ProcessHandle* renderer_handle, - int* renderer_id) = 0; - - // Called when the channel is asynchronously opened to the plugin or on - // error. On error, the parameters should be: - // base::kNullProcessHandle - // IPC::ChannelHandle() - virtual void OnChannelOpened(base::ProcessHandle plugin_process_handle, - const IPC::ChannelHandle& channel_handle) = 0; - }; - - // You must call init before doing anything else. - explicit PpapiPluginProcessHost(); - virtual ~PpapiPluginProcessHost(); - - // Actually launches the process with the given plugin path. Returns true - // on success (the process was spawned). - bool Init(const FilePath& path); - - // Opens a new channel to the plugin. The client will be notified when the - // channel is ready or if there's an error. - void OpenChannelToPlugin(Client* client); - - const FilePath& plugin_path() const { return plugin_path_; } - - // The client pointer must remain valid until its callback is issued. - - private: - - void RequestPluginChannel(Client* client); - - virtual bool CanShutdown(); - virtual void OnProcessLaunched(); - - virtual bool OnMessageReceived(const IPC::Message& msg); - virtual void OnChannelConnected(int32 peer_pid); - virtual void OnChannelError(); - - void CancelRequests(); - - // IPC message handlers. - void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); - - // Channel requests that we are waiting to send to the plugin process once - // the channel is opened. - std::vector<Client*> pending_requests_; - - // Channel requests that we have already sent to the plugin process, but - // haven't heard back about yet. - std::queue<Client*> sent_requests_; - - // Path to the plugin library. - FilePath plugin_path_; - - DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); -}; +// TODO(jam): remove this file when all files have been converted. +#include "content/browser/ppapi_plugin_process_host.h" #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |