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 #include "content/renderer/pepper/pepper_broker_impl.h" | 5 #include "content/renderer/pepper/pepper_broker_impl.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/public/renderer/renderer_restrict_dispatch_group.h" |
8 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
9 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" | 10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
10 #include "content/renderer/renderer_restrict_dispatch_group.h" | |
11 #include "ipc/ipc_channel_handle.h" | 11 #include "ipc/ipc_channel_handle.h" |
12 #include "ppapi/proxy/broker_dispatcher.h" | 12 #include "ppapi/proxy/broker_dispatcher.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 13 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/shared_impl/platform_file.h" | 14 #include "ppapi/shared_impl/platform_file.h" |
15 #include "webkit/plugins/ppapi/plugin_module.h" | 15 #include "webkit/plugins/ppapi/plugin_module.h" |
16 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include <windows.h> | 19 #include <windows.h> |
20 #endif | 20 #endif |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing | 242 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing |
243 // client and plugin_socket.release(), then return. | 243 // client and plugin_socket.release(), then return. |
244 // That message handler will then call client->BrokerConnected() with the | 244 // That message handler will then call client->BrokerConnected() with the |
245 // saved pipe handle. | 245 // saved pipe handle. |
246 // Temporarily, just call back. | 246 // Temporarily, just call back. |
247 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result); | 247 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result); |
248 } | 248 } |
249 | 249 |
250 } // namespace content | 250 } // namespace content |
OLD | NEW |