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

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

Issue 9429039: Cleanup: Remove base::environment_vector and base::file_handle_mapping_vector to StudlyCaps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 424 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
425 425
426 // Spawn the child process asynchronously to avoid blocking the UI thread. 426 // Spawn the child process asynchronously to avoid blocking the UI thread.
427 // As long as there's no renderer prefix, we can use the zygote process 427 // As long as there's no renderer prefix, we can use the zygote process
428 // at this stage. 428 // at this stage.
429 child_process_launcher_.reset(new ChildProcessLauncher( 429 child_process_launcher_.reset(new ChildProcessLauncher(
430 #if defined(OS_WIN) 430 #if defined(OS_WIN)
431 FilePath(), 431 FilePath(),
432 #elif defined(OS_POSIX) 432 #elif defined(OS_POSIX)
433 renderer_prefix.empty(), 433 renderer_prefix.empty(),
434 base::environment_vector(), 434 base::EnvironmentVector(),
435 channel_->TakeClientFileDescriptor(), 435 channel_->TakeClientFileDescriptor(),
436 #endif 436 #endif
437 cmd_line, 437 cmd_line,
438 this)); 438 this));
439 439
440 fast_shutdown_started_ = false; 440 fast_shutdown_started_ = false;
441 } 441 }
442 442
443 is_initialized_ = true; 443 is_initialized_ = true;
444 return true; 444 return true;
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 // Only honor the request if appropriate persmissions are granted. 1310 // Only honor the request if appropriate persmissions are granted.
1311 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1311 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1312 path)) 1312 path))
1313 content::GetContentClient()->browser()->OpenItem(path); 1313 content::GetContentClient()->browser()->OpenItem(path);
1314 } 1314 }
1315 1315
1316 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1316 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1317 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1317 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1318 MHTMLGenerated(job_id, data_size); 1318 MHTMLGenerated(job_id, data_size);
1319 } 1319 }
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