diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-16 22:12:45 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-16 22:12:45 +0000 |
commit | e2614c60e3bab6cc1b949ecd8101189d285da17f (patch) | |
tree | f664f4e27974b7dee547aba035abef48e27c167c /content/ppapi_plugin/broker_process_dispatcher.h | |
parent | 64a2958841eb968837a90c9a738d9b68e33abb70 (diff) | |
download | chromium_src-e2614c60e3bab6cc1b949ecd8101189d285da17f.zip chromium_src-e2614c60e3bab6cc1b949ecd8101189d285da17f.tar.gz chromium_src-e2614c60e3bab6cc1b949ecd8101189d285da17f.tar.bz2 |
Refactored ppapi Dispatcher to share common code between the plugin and broker dispatchers.
Common code is in DispatcherBase. The base of the dispatcher for plugins remains Dispatcher. The base of the dispatcher for Brokers is BrokerDispatcher.
BUG=none
TEST=ppapi out-of-process plugins
Review URL: http://codereview.chromium.org/6859003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/ppapi_plugin/broker_process_dispatcher.h')
-rw-r--r-- | content/ppapi_plugin/broker_process_dispatcher.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/content/ppapi_plugin/broker_process_dispatcher.h b/content/ppapi_plugin/broker_process_dispatcher.h new file mode 100644 index 0000000..e5086fd --- /dev/null +++ b/content/ppapi_plugin/broker_process_dispatcher.h @@ -0,0 +1,24 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ +#define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ + +#include "base/basictypes.h" +#include "ppapi/proxy/broker_dispatcher.h" + +// Wrapper around a BrokerDispatcher that provides the necessary integration +// for plugin process management. This class is to avoid direct dependencies +// from the PPAPI proxy on the Chrome multiprocess infrastructure. +class BrokerProcessDispatcher : public pp::proxy::BrokerDispatcher { + public: + BrokerProcessDispatcher(base::ProcessHandle remote_process_handle, + PP_ConnectInstance_Func connect_instance); + virtual ~BrokerProcessDispatcher(); + + private: + DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher); +}; + +#endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ |