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

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

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 3 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 | Annotate | Revision Log
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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 504 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
505 505
506 // Spawn the child process asynchronously to avoid blocking the UI thread. 506 // Spawn the child process asynchronously to avoid blocking the UI thread.
507 // As long as there's no renderer prefix, we can use the zygote process 507 // As long as there's no renderer prefix, we can use the zygote process
508 // at this stage. 508 // at this stage.
509 child_process_launcher_.reset(new ChildProcessLauncher( 509 child_process_launcher_.reset(new ChildProcessLauncher(
510 #if defined(OS_WIN) 510 #if defined(OS_WIN)
511 new RendererSandboxedProcessLauncherDelegate, 511 new RendererSandboxedProcessLauncherDelegate,
512 #elif defined(OS_POSIX) 512 #elif defined(OS_POSIX)
513 renderer_prefix.empty(), 513 renderer_prefix.empty(),
514 base::EnvironmentVector(), 514 base::EnvironmentMap(),
515 channel_->TakeClientFileDescriptor(), 515 channel_->TakeClientFileDescriptor(),
516 #endif 516 #endif
517 cmd_line, 517 cmd_line,
518 GetID(), 518 GetID(),
519 this)); 519 this));
520 520
521 fast_shutdown_started_ = false; 521 fast_shutdown_started_ = false;
522 } 522 }
523 523
524 if (!gpu_observer_registered_) { 524 if (!gpu_observer_registered_) {
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 // Skip widgets in other processes. 1770 // Skip widgets in other processes.
1771 if (widgets[i]->GetProcess()->GetID() != GetID()) 1771 if (widgets[i]->GetProcess()->GetID() != GetID())
1772 continue; 1772 continue;
1773 1773
1774 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1774 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1775 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1775 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1776 } 1776 }
1777 } 1777 }
1778 1778
1779 } // namespace content 1779 } // 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