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/public/renderer/renderer_restrict_dispatch_group.h" |
9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" | 10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
| 11 #include "content/renderer/pepper/plugin_module.h" |
| 12 #include "content/renderer/pepper/ppb_broker_impl.h" |
11 #include "ipc/ipc_channel_handle.h" | 13 #include "ipc/ipc_channel_handle.h" |
12 #include "ppapi/proxy/broker_dispatcher.h" | 14 #include "ppapi/proxy/broker_dispatcher.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/shared_impl/platform_file.h" | 16 #include "ppapi/shared_impl/platform_file.h" |
15 #include "webkit/plugins/ppapi/plugin_module.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 |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) { | 26 base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing | 284 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing |
285 // client and plugin_socket.release(), then return. | 285 // client and plugin_socket.release(), then return. |
286 // That message handler will then call client->BrokerConnected() with the | 286 // That message handler will then call client->BrokerConnected() with the |
287 // saved pipe handle. | 287 // saved pipe handle. |
288 // Temporarily, just call back. | 288 // Temporarily, just call back. |
289 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result); | 289 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result); |
290 } | 290 } |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
OLD | NEW |