diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 22:51:08 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 22:51:08 +0000 |
commit | 4b417e55e37a4d9d347a0dfbfc5350f55569819f (patch) | |
tree | 1e93f2f2510c8e1d7a596dbf9aaec4bdd8ed1f87 /ppapi/proxy/broker_dispatcher.h | |
parent | 5d15b27b0e135a5353bd8150d42be1d1ed6d1871 (diff) | |
download | chromium_src-4b417e55e37a4d9d347a0dfbfc5350f55569819f.zip chromium_src-4b417e55e37a4d9d347a0dfbfc5350f55569819f.tar.gz chromium_src-4b417e55e37a4d9d347a0dfbfc5350f55569819f.tar.bz2 |
Fix two bugs in proxying of Broker Connect callback and shutdown Broker when renderer exits.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6882020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/broker_dispatcher.h')
-rw-r--r-- | ppapi/proxy/broker_dispatcher.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ppapi/proxy/broker_dispatcher.h b/ppapi/proxy/broker_dispatcher.h index e451218..399bb87 100644 --- a/ppapi/proxy/broker_dispatcher.h +++ b/ppapi/proxy/broker_dispatcher.h @@ -39,10 +39,23 @@ class BrokerDispatcher : public ProxyChannel { DISALLOW_COPY_AND_ASSIGN(BrokerDispatcher); }; -// A simple class for broker hosts. +// The dispatcher for the browser side of the broker channel. class BrokerHostDispatcher : public BrokerDispatcher { public: BrokerHostDispatcher(base::ProcessHandle remote_process_handle); + + // IPC::Channel::Listener implementation. + virtual void OnChannelError(); +}; + +// The dispatcher for the broker side of the broker channel. +class BrokerSideDispatcher : public BrokerDispatcher { + public: + BrokerSideDispatcher(base::ProcessHandle remote_process_handle, + PP_ConnectInstance_Func connect_instance); + + // IPC::Channel::Listener implementation. + virtual void OnChannelError(); }; } // namespace proxy |