diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-03 17:32:19 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-03 17:32:19 +0000 |
commit | 176c7392aadbb01cfd885e0a1aaea7e850d8d99a (patch) | |
tree | b39bae2c61985c991ee0591cdcb3e684a7389e2f /ppapi/proxy/host_dispatcher.cc | |
parent | d2bc6742a48ce48bd957cd812bf327dbfa7dce13 (diff) | |
download | chromium_src-176c7392aadbb01cfd885e0a1aaea7e850d8d99a.zip chromium_src-176c7392aadbb01cfd885e0a1aaea7e850d8d99a.tar.gz chromium_src-176c7392aadbb01cfd885e0a1aaea7e850d8d99a.tar.bz2 |
Implement PPAPI proxy shutdown.
This just adds a message from the dispatcher in the renderer to the one in
the plugin to terminate the process. The PpapiPluginProcessHost in the browser
automatically cleans everything up when there's an IPC channel error.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/5533002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/host_dispatcher.cc')
-rw-r--r-- | ppapi/proxy/host_dispatcher.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc index a717af8..fd9801c 100644 --- a/ppapi/proxy/host_dispatcher.cc +++ b/ppapi/proxy/host_dispatcher.cc @@ -8,6 +8,7 @@ #include "base/logging.h" #include "ppapi/proxy/host_var_serialization_rules.h" +#include "ppapi/proxy/ppapi_messages.h" namespace pp { namespace proxy { @@ -28,6 +29,8 @@ HostDispatcher::HostDispatcher(base::ProcessHandle remote_process_handle, } HostDispatcher::~HostDispatcher() { + // Notify the plugin that it should exit. + Send(new PpapiMsg_Shutdown()); } // static |