Update V8 to version 4.7.20.
[chromium-blink-merge.git] / content / ppapi_plugin / plugin_process_dispatcher.h
blob548bdc2a70e49ac428eeda8fde066c056479af96
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_
6 #define CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_
8 #include "base/basictypes.h"
9 #include "content/child/scoped_child_process_reference.h"
10 #include "ppapi/proxy/plugin_dispatcher.h"
12 namespace content {
14 // Wrapper around a PluginDispatcher that provides the necessary integration
15 // for plugin process management. This class is to avoid direct dependencies
16 // from the PPAPI proxy on the Chrome multiprocess infrastructure.
17 class PluginProcessDispatcher : public ppapi::proxy::PluginDispatcher {
18 public:
19 PluginProcessDispatcher(PP_GetInterface_Func get_interface,
20 const ppapi::PpapiPermissions& permissions,
21 bool incognito);
22 ~PluginProcessDispatcher() override;
24 private:
25 ScopedChildProcessReference process_ref_;
27 DISALLOW_COPY_AND_ASSIGN(PluginProcessDispatcher);
30 } // namespace content
32 #endif // CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_