OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ |
6 #define CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/proxy/plugin_dispatcher.h" | 9 #include "ppapi/proxy/plugin_dispatcher.h" |
10 | 10 |
11 // Wrapper around a PluginDispatcher that provides the necessary integration | 11 // Wrapper around a PluginDispatcher that provides the necessary integration |
12 // for plugin process management. This class is to avoid direct dependencies | 12 // for plugin process management. This class is to avoid direct dependencies |
13 // from the PPAPI proxy on the Chrome multiprocess infrastructure. | 13 // from the PPAPI proxy on the Chrome multiprocess infrastructure. |
14 class PluginProcessDispatcher : public ppapi::proxy::PluginDispatcher { | 14 class PluginProcessDispatcher : public ppapi::proxy::PluginDispatcher { |
15 public: | 15 public: |
16 PluginProcessDispatcher(PP_GetInterface_Func get_interface, | 16 PluginProcessDispatcher(PP_GetInterface_Func get_interface, |
| 17 const ppapi::PpapiPermissions& permissions, |
17 bool incognito); | 18 bool incognito); |
18 virtual ~PluginProcessDispatcher(); | 19 virtual ~PluginProcessDispatcher(); |
19 | 20 |
20 private: | 21 private: |
21 DISALLOW_COPY_AND_ASSIGN(PluginProcessDispatcher); | 22 DISALLOW_COPY_AND_ASSIGN(PluginProcessDispatcher); |
22 }; | 23 }; |
23 | 24 |
24 #endif // CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ | 25 #endif // CONTENT_PPAPI_PLUGIN_PLUGIN_PROCESS_DISPATCHER_H_ |
OLD | NEW |