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

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

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds the elevation flag to the utility process. Created 6 years, 10 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698