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 "ppapi/proxy/ppb_broker_proxy.h" | 5 #include "ppapi/proxy/ppb_broker_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 10 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
10 #include "ppapi/proxy/enter_proxy.h" | 11 #include "ppapi/proxy/enter_proxy.h" |
11 #include "ppapi/proxy/plugin_dispatcher.h" | 12 #include "ppapi/proxy/plugin_dispatcher.h" |
12 #include "ppapi/proxy/ppapi_messages.h" | 13 #include "ppapi/proxy/ppapi_messages.h" |
13 #include "ppapi/shared_impl/platform_file.h" | 14 #include "ppapi/shared_impl/platform_file.h" |
14 #include "ppapi/shared_impl/tracked_callback.h" | 15 #include "ppapi/shared_impl/tracked_callback.h" |
| 16 #include "ppapi/thunk/enter.h" |
15 #include "ppapi/thunk/ppb_broker_api.h" | 17 #include "ppapi/thunk/ppb_broker_api.h" |
16 #include "ppapi/thunk/enter.h" | |
17 #include "ppapi/thunk/resource_creation_api.h" | 18 #include "ppapi/thunk/resource_creation_api.h" |
18 #include "ppapi/thunk/thunk.h" | 19 #include "ppapi/thunk/thunk.h" |
19 | 20 |
20 using ppapi::IntToPlatformFile; | 21 using ppapi::IntToPlatformFile; |
21 using ppapi::PlatformFileToInt; | 22 using ppapi::PlatformFileToInt; |
22 using ppapi::thunk::PPB_Broker_API; | 23 using ppapi::thunk::PPB_Broker_API; |
23 | 24 |
24 namespace ppapi { | 25 namespace ppapi { |
25 namespace proxy { | 26 namespace proxy { |
26 | 27 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // The easiest way to clean it up is to just put it in an object | 227 // The easiest way to clean it up is to just put it in an object |
227 // and then close it. This failure case is not performance critical. | 228 // and then close it. This failure case is not performance critical. |
228 // The handle could still leak if Send succeeded but the IPC later failed. | 229 // The handle could still leak if Send succeeded but the IPC later failed. |
229 base::SyncSocket temp_socket( | 230 base::SyncSocket temp_socket( |
230 IPC::PlatformFileForTransitToPlatformFile(foreign_socket_handle)); | 231 IPC::PlatformFileForTransitToPlatformFile(foreign_socket_handle)); |
231 } | 232 } |
232 } | 233 } |
233 | 234 |
234 } // namespace proxy | 235 } // namespace proxy |
235 } // namespace ppapi | 236 } // namespace ppapi |
OLD | NEW |