| 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_PPAPI_THREAD_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/child/child_thread.h" | 17 #include "content/child/child_thread.h" |
| 18 #include "content/public/common/pepper_plugin_info.h" |
| 18 #include "ipc/ipc_listener.h" | 19 #include "ipc/ipc_listener.h" |
| 19 #include "ppapi/c/pp_module.h" | 20 #include "ppapi/c/pp_module.h" |
| 20 #include "ppapi/c/trusted/ppp_broker.h" | 21 #include "ppapi/c/trusted/ppp_broker.h" |
| 21 #include "ppapi/proxy/plugin_dispatcher.h" | 22 #include "ppapi/proxy/plugin_dispatcher.h" |
| 22 #include "ppapi/proxy/plugin_globals.h" | 23 #include "ppapi/proxy/plugin_globals.h" |
| 23 #include "ppapi/proxy/plugin_proxy_delegate.h" | 24 #include "ppapi/proxy/plugin_proxy_delegate.h" |
| 24 #include "webkit/plugins/ppapi/plugin_module.h" | |
| 25 | 25 |
| 26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 27 #include "base/win/scoped_handle.h" | 27 #include "base/win/scoped_handle.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 class CommandLine; | 30 class CommandLine; |
| 31 | 31 |
| 32 namespace base { | 32 namespace base { |
| 33 class FilePath; | 33 class FilePath; |
| 34 } | 34 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 bool is_broker_; | 131 bool is_broker_; |
| 132 | 132 |
| 133 base::ScopedNativeLibrary library_; | 133 base::ScopedNativeLibrary library_; |
| 134 | 134 |
| 135 ppapi::PpapiPermissions permissions_; | 135 ppapi::PpapiPermissions permissions_; |
| 136 | 136 |
| 137 // Global state tracking for the proxy. | 137 // Global state tracking for the proxy. |
| 138 ppapi::proxy::PluginGlobals plugin_globals_; | 138 ppapi::proxy::PluginGlobals plugin_globals_; |
| 139 | 139 |
| 140 // Storage for plugin entry points. | 140 // Storage for plugin entry points. |
| 141 webkit::ppapi::PluginModule::EntryPoints plugin_entry_points_; | 141 PepperPluginInfo::EntryPoints plugin_entry_points_; |
| 142 | 142 |
| 143 // Callback to call when a new instance connects to the broker. | 143 // Callback to call when a new instance connects to the broker. |
| 144 // Used only when is_broker_. | 144 // Used only when is_broker_. |
| 145 PP_ConnectInstance_Func connect_instance_func_; | 145 PP_ConnectInstance_Func connect_instance_func_; |
| 146 | 146 |
| 147 // Local concept of the module ID. Some functions take this. It's necessary | 147 // Local concept of the module ID. Some functions take this. It's necessary |
| 148 // for the in-process PPAPI to handle this properly, but for proxied it's | 148 // for the in-process PPAPI to handle this properly, but for proxied it's |
| 149 // unnecessary. The proxy talking to multiple renderers means that each | 149 // unnecessary. The proxy talking to multiple renderers means that each |
| 150 // renderer has a different idea of what the module ID is for this plugin. | 150 // renderer has a different idea of what the module ID is for this plugin. |
| 151 // To force people to "do the right thing" we generate a random module ID | 151 // To force people to "do the right thing" we generate a random module ID |
| (...skipping 16 matching lines...) Expand all Loading... |
| 168 #endif | 168 #endif |
| 169 | 169 |
| 170 DispatcherMessageListener dispatcher_message_listener_; | 170 DispatcherMessageListener dispatcher_message_listener_; |
| 171 | 171 |
| 172 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 172 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace content | 175 } // namespace content |
| 176 | 176 |
| 177 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 177 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |