| 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/browser/ppapi_plugin_process_host.h" | 5 #include "content/browser/ppapi_plugin_process_host.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "content/browser/plugin_service.h" | 12 #include "content/browser/plugin_service_impl.h" |
| 13 #include "content/browser/renderer_host/render_message_filter.h" | 13 #include "content/browser/renderer_host/render_message_filter.h" |
| 14 #include "content/common/child_process_host_impl.h" | 14 #include "content/common/child_process_host_impl.h" |
| 15 #include "content/common/child_process_messages.h" | 15 #include "content/common/child_process_messages.h" |
| 16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
| 17 #include "content/public/common/pepper_plugin_info.h" | 17 #include "content/public/common/pepper_plugin_info.h" |
| 18 #include "content/public/common/process_type.h" | 18 #include "content/public/common/process_type.h" |
| 19 #include "ipc/ipc_switches.h" | 19 #include "ipc/ipc_switches.h" |
| 20 #include "net/base/network_change_notifier.h" | 20 #include "net/base/network_change_notifier.h" |
| 21 #include "ppapi/proxy/ppapi_messages.h" | 21 #include "ppapi/proxy/ppapi_messages.h" |
| 22 | 22 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 ::DuplicateHandle(::GetCurrentProcess(), plugin_process, | 281 ::DuplicateHandle(::GetCurrentProcess(), plugin_process, |
| 282 renderer_process, &renderers_plugin_handle, | 282 renderer_process, &renderers_plugin_handle, |
| 283 0, FALSE, DUPLICATE_SAME_ACCESS); | 283 0, FALSE, DUPLICATE_SAME_ACCESS); |
| 284 #elif defined(OS_POSIX) | 284 #elif defined(OS_POSIX) |
| 285 // Don't need to duplicate anything on POSIX since it's just a PID. | 285 // Don't need to duplicate anything on POSIX since it's just a PID. |
| 286 base::ProcessHandle renderers_plugin_handle = plugin_process; | 286 base::ProcessHandle renderers_plugin_handle = plugin_process; |
| 287 #endif | 287 #endif |
| 288 | 288 |
| 289 client->OnChannelOpened(renderers_plugin_handle, channel_handle); | 289 client->OnChannelOpened(renderers_plugin_handle, channel_handle); |
| 290 } | 290 } |
| OLD | NEW |