| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/nacl/renderer/manifest_service_channel.h" | 5 #include "components/nacl/renderer/manifest_service_channel.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/public/common/sandbox_init.h" | 13 #include "content/public/common/sandbox_init.h" |
| 14 #include "content/public/renderer/render_thread.h" | 14 #include "content/public/renderer/render_thread.h" |
| 15 #include "ipc/ipc_channel.h" | 15 #include "ipc/ipc_channel.h" |
| 16 #include "ipc/ipc_sync_channel.h" | 16 #include "ipc/ipc_sync_channel.h" |
| 17 #include "ppapi/c/pp_errors.h" | 17 #include "ppapi/c/pp_errors.h" |
| 18 #include "ppapi/c/ppb_file_io.h" | 18 #include "ppapi/c/ppb_file_io.h" |
| 19 #include "ppapi/proxy/ppapi_messages.h" | 19 #include "ppapi/proxy/ppapi_messages.h" |
| 20 | 20 |
| 21 namespace content { |
| 22 |
| 23 bool BrokerDuplicateHandle(HANDLE source_handle, |
| 24 DWORD target_process_id, |
| 25 HANDLE* target_handle, |
| 26 DWORD desired_access, |
| 27 DWORD options); |
| 28 } |
| 29 |
| 21 namespace nacl { | 30 namespace nacl { |
| 22 | 31 |
| 23 ManifestServiceChannel::ManifestServiceChannel( | 32 ManifestServiceChannel::ManifestServiceChannel( |
| 24 const IPC::ChannelHandle& handle, | 33 const IPC::ChannelHandle& handle, |
| 25 const base::Callback<void(int32_t)>& connected_callback, | 34 const base::Callback<void(int32_t)>& connected_callback, |
| 26 scoped_ptr<Delegate> delegate, | 35 scoped_ptr<Delegate> delegate, |
| 27 base::WaitableEvent* waitable_event) | 36 base::WaitableEvent* waitable_event) |
| 28 : connected_callback_(connected_callback), | 37 : connected_callback_(connected_callback), |
| 29 delegate_(std::move(delegate)), | 38 delegate_(std::move(delegate)), |
| 30 channel_(IPC::SyncChannel::Create( | 39 channel_(IPC::SyncChannel::Create( |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 #endif | 113 #endif |
| 105 } | 114 } |
| 106 PpapiHostMsg_OpenResource::WriteReplyParams(reply, | 115 PpapiHostMsg_OpenResource::WriteReplyParams(reply, |
| 107 handle, | 116 handle, |
| 108 token_lo, | 117 token_lo, |
| 109 token_hi); | 118 token_hi); |
| 110 Send(reply); | 119 Send(reply); |
| 111 } | 120 } |
| 112 | 121 |
| 113 } // namespace nacl | 122 } // namespace nacl |
| OLD | NEW |