| 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 "chrome/browser/ppapi_plugin_process_host.h" | 5 #include "content/browser/ppapi_plugin_process_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "chrome/browser/plugin_service.h" | |
| 11 #include "chrome/browser/renderer_host/render_message_filter.h" | |
| 12 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 12 #include "content/browser/plugin_service.h" |
| 13 #include "content/browser/renderer_host/render_message_filter.h" |
| 14 #include "ipc/ipc_switches.h" | 14 #include "ipc/ipc_switches.h" |
| 15 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
| 16 | 16 |
| 17 PpapiPluginProcessHost::PpapiPluginProcessHost() | 17 PpapiPluginProcessHost::PpapiPluginProcessHost() |
| 18 : BrowserChildProcessHost( | 18 : BrowserChildProcessHost( |
| 19 ChildProcessInfo::PPAPI_PLUGIN_PROCESS, | 19 ChildProcessInfo::PPAPI_PLUGIN_PROCESS, |
| 20 PluginService::GetInstance()->resource_dispatcher_host()) { | 20 PluginService::GetInstance()->resource_dispatcher_host()) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 PpapiPluginProcessHost::~PpapiPluginProcessHost() { | 23 PpapiPluginProcessHost::~PpapiPluginProcessHost() { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 ::DuplicateHandle(::GetCurrentProcess(), plugin_process, | 165 ::DuplicateHandle(::GetCurrentProcess(), plugin_process, |
| 166 renderer_process, &renderers_plugin_handle, | 166 renderer_process, &renderers_plugin_handle, |
| 167 0, FALSE, DUPLICATE_SAME_ACCESS); | 167 0, FALSE, DUPLICATE_SAME_ACCESS); |
| 168 #elif defined(OS_POSIX) | 168 #elif defined(OS_POSIX) |
| 169 // Don't need to duplicate anything on POSIX since it's just a PID. | 169 // Don't need to duplicate anything on POSIX since it's just a PID. |
| 170 base::ProcessHandle renderers_plugin_handle = plugin_process; | 170 base::ProcessHandle renderers_plugin_handle = plugin_process; |
| 171 #endif | 171 #endif |
| 172 | 172 |
| 173 client->OnChannelOpened(renderers_plugin_handle, channel_handle); | 173 client->OnChannelOpened(renderers_plugin_handle, channel_handle); |
| 174 } | 174 } |
| OLD | NEW |