| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ppapi_plugin/ppapi_thread.h" | 5 #include "content/ppapi_plugin/ppapi_thread.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 11 #include "base/stringprintf.h" |
| 11 #include "content/common/child_process.h" | 12 #include "content/common/child_process.h" |
| 12 #include "content/ppapi_plugin/broker_process_dispatcher.h" | 13 #include "content/ppapi_plugin/broker_process_dispatcher.h" |
| 13 #include "content/ppapi_plugin/plugin_process_dispatcher.h" | 14 #include "content/ppapi_plugin/plugin_process_dispatcher.h" |
| 14 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
| 15 #include "ipc/ipc_sync_channel.h" | 16 #include "ipc/ipc_sync_channel.h" |
| 16 #include "ppapi/c/pp_errors.h" | 17 #include "ppapi/c/pp_errors.h" |
| 17 #include "ppapi/c/ppp.h" | 18 #include "ppapi/c/ppp.h" |
| 18 #include "ppapi/proxy/ppapi_messages.h" | 19 #include "ppapi/proxy/ppapi_messages.h" |
| 19 | 20 |
| 20 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 #if defined(OS_POSIX) | 195 #if defined(OS_POSIX) |
| 195 // On POSIX, pass the renderer-side FD. | 196 // On POSIX, pass the renderer-side FD. |
| 196 handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()), | 197 handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()), |
| 197 true); | 198 true); |
| 198 #endif | 199 #endif |
| 199 | 200 |
| 200 // From here, the dispatcher will manage its own lifetime according to the | 201 // From here, the dispatcher will manage its own lifetime according to the |
| 201 // lifetime of the attached channel. | 202 // lifetime of the attached channel. |
| 202 return true; | 203 return true; |
| 203 } | 204 } |
| OLD | NEW |