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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 cmd_line->PrependWrapper(renderer_prefix); | 560 cmd_line->PrependWrapper(renderer_prefix); |
561 AppendRendererCommandLine(cmd_line); | 561 AppendRendererCommandLine(cmd_line); |
562 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); | 562 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
563 | 563 |
564 // Spawn the child process asynchronously to avoid blocking the UI thread. | 564 // Spawn the child process asynchronously to avoid blocking the UI thread. |
565 // As long as there's no renderer prefix, we can use the zygote process | 565 // As long as there's no renderer prefix, we can use the zygote process |
566 // at this stage. | 566 // at this stage. |
567 child_process_launcher_.reset(new ChildProcessLauncher( | 567 child_process_launcher_.reset(new ChildProcessLauncher( |
568 #if defined(OS_WIN) | 568 #if defined(OS_WIN) |
569 new RendererSandboxedProcessLauncherDelegate, | 569 new RendererSandboxedProcessLauncherDelegate, |
| 570 false, |
570 #elif defined(OS_POSIX) | 571 #elif defined(OS_POSIX) |
571 renderer_prefix.empty(), | 572 renderer_prefix.empty(), |
572 base::EnvironmentMap(), | 573 base::EnvironmentMap(), |
573 channel_->TakeClientFileDescriptor(), | 574 channel_->TakeClientFileDescriptor(), |
574 #endif | 575 #endif |
575 cmd_line, | 576 cmd_line, |
576 GetID(), | 577 GetID(), |
577 this)); | 578 this)); |
578 | 579 |
579 fast_shutdown_started_ = false; | 580 fast_shutdown_started_ = false; |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2073 return; | 2074 return; |
2074 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2075 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
2075 } | 2076 } |
2076 | 2077 |
2077 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2078 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
2078 Send(new MediaStreamMsg_DisableAecDump()); | 2079 Send(new MediaStreamMsg_DisableAecDump()); |
2079 } | 2080 } |
2080 #endif | 2081 #endif |
2081 | 2082 |
2082 } // namespace content | 2083 } // namespace content |
OLD | NEW |