summaryrefslogtreecommitdiffstats
path: root/content/ppapi_plugin/broker_process_dispatcher.h
diff options
context:
space:
mode:
authorddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-16 22:12:45 +0000
committerddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-16 22:12:45 +0000
commite2614c60e3bab6cc1b949ecd8101189d285da17f (patch)
treef664f4e27974b7dee547aba035abef48e27c167c /content/ppapi_plugin/broker_process_dispatcher.h
parent64a2958841eb968837a90c9a738d9b68e33abb70 (diff)
downloadchromium_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.h24
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_