Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1022703007: Simplify ChildProcessLauncher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher
Patch Set: fix Android compile Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 AppendRendererCommandLine(cmd_line); 674 AppendRendererCommandLine(cmd_line);
675 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 675 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
676 676
677 // Spawn the child process asynchronously to avoid blocking the UI thread. 677 // Spawn the child process asynchronously to avoid blocking the UI thread.
678 // As long as there's no renderer prefix, we can use the zygote process 678 // As long as there's no renderer prefix, we can use the zygote process
679 // at this stage. 679 // at this stage.
680 child_process_launcher_.reset(new ChildProcessLauncher( 680 child_process_launcher_.reset(new ChildProcessLauncher(
681 new RendererSandboxedProcessLauncherDelegate(channel_.get()), 681 new RendererSandboxedProcessLauncherDelegate(channel_.get()),
682 cmd_line, 682 cmd_line,
683 GetID(), 683 GetID(),
684 this)); 684 this,
685 true));
685 686
686 fast_shutdown_started_ = false; 687 fast_shutdown_started_ = false;
687 } 688 }
688 689
689 if (!gpu_observer_registered_) { 690 if (!gpu_observer_registered_) {
690 gpu_observer_registered_ = true; 691 gpu_observer_registered_ = true;
691 ui::GpuSwitchingManager::GetInstance()->AddObserver(this); 692 ui::GpuSwitchingManager::GetInstance()->AddObserver(this);
692 } 693 }
693 694
694 power_monitor_broadcaster_.Init(); 695 power_monitor_broadcaster_.Init();
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 if (worker_ref_count_ == 0) 2490 if (worker_ref_count_ == 0)
2490 Cleanup(); 2491 Cleanup();
2491 } 2492 }
2492 2493
2493 void RenderProcessHostImpl::GetAudioOutputControllers( 2494 void RenderProcessHostImpl::GetAudioOutputControllers(
2494 const GetAudioOutputControllersCallback& callback) const { 2495 const GetAudioOutputControllersCallback& callback) const {
2495 audio_renderer_host()->GetOutputControllers(callback); 2496 audio_renderer_host()->GetOutputControllers(callback);
2496 } 2497 }
2497 2498
2498 } // namespace content 2499 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698