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_platform_file.h" |
16 #include "ipc/ipc_sync_channel.h" | 17 #include "ipc/ipc_sync_channel.h" |
17 #include "ppapi/c/pp_errors.h" | 18 #include "ppapi/c/pp_errors.h" |
18 #include "ppapi/c/ppb_file_io.h" | 19 #include "ppapi/c/ppb_file_io.h" |
19 #include "ppapi/proxy/ppapi_messages.h" | 20 #include "ppapi/proxy/ppapi_messages.h" |
20 | 21 |
21 namespace nacl { | 22 namespace nacl { |
22 | 23 |
23 ManifestServiceChannel::ManifestServiceChannel( | 24 ManifestServiceChannel::ManifestServiceChannel( |
24 const IPC::ChannelHandle& handle, | 25 const IPC::ChannelHandle& handle, |
25 const base::Callback<void(int32_t)>& connected_callback, | 26 const base::Callback<void(int32_t)>& connected_callback, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #endif | 105 #endif |
105 } | 106 } |
106 PpapiHostMsg_OpenResource::WriteReplyParams(reply, | 107 PpapiHostMsg_OpenResource::WriteReplyParams(reply, |
107 handle, | 108 handle, |
108 token_lo, | 109 token_lo, |
109 token_hi); | 110 token_hi); |
110 Send(reply); | 111 Send(reply); |
111 } | 112 } |
112 | 113 |
113 } // namespace nacl | 114 } // namespace nacl |
OLD | NEW |