| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/plugin_process_host.h" | 5 #include "content/browser/plugin_process_host.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #elif defined(OS_POSIX) | 9 #elif defined(OS_POSIX) |
| 10 #include <utility> // for pair<> | 10 #include <utility> // for pair<> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 env[kDYLDInsertLibrariesKey] = interpose_list; | 240 env[kDYLDInsertLibrariesKey] = interpose_list; |
| 241 } | 241 } |
| 242 #endif | 242 #endif |
| 243 #endif | 243 #endif |
| 244 | 244 |
| 245 process_->Launch( | 245 process_->Launch( |
| 246 #if defined(OS_WIN) | 246 #if defined(OS_WIN) |
| 247 new PluginSandboxedProcessLauncherDelegate, | 247 new PluginSandboxedProcessLauncherDelegate, |
| 248 false, |
| 248 #elif defined(OS_POSIX) | 249 #elif defined(OS_POSIX) |
| 249 false, | 250 false, |
| 250 env, | 251 env, |
| 251 #endif | 252 #endif |
| 252 cmd_line); | 253 cmd_line); |
| 253 | 254 |
| 254 // The plugin needs to be shutdown gracefully, i.e. NP_Shutdown needs to be | 255 // The plugin needs to be shutdown gracefully, i.e. NP_Shutdown needs to be |
| 255 // called on the plugin. The plugin process exits when it receives the | 256 // called on the plugin. The plugin process exits when it receives the |
| 256 // OnChannelError notification indicating that the browser plugin channel has | 257 // OnChannelError notification indicating that the browser plugin channel has |
| 257 // been destroyed. | 258 // been destroyed. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 426 |
| 426 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, | 427 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, |
| 427 ResourceContext** resource_context, | 428 ResourceContext** resource_context, |
| 428 net::URLRequestContext** request_context) { | 429 net::URLRequestContext** request_context) { |
| 429 *resource_context = | 430 *resource_context = |
| 430 resource_context_map_[request.origin_pid].resource_context; | 431 resource_context_map_[request.origin_pid].resource_context; |
| 431 *request_context = (*resource_context)->GetRequestContext(); | 432 *request_context = (*resource_context)->GetRequestContext(); |
| 432 } | 433 } |
| 433 | 434 |
| 434 } // namespace content | 435 } // namespace content |
| OLD | NEW |