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

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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 419 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
420 420
421 // Spawn the child process asynchronously to avoid blocking the UI thread. 421 // Spawn the child process asynchronously to avoid blocking the UI thread.
422 // As long as there's no renderer prefix, we can use the zygote process 422 // As long as there's no renderer prefix, we can use the zygote process
423 // at this stage. 423 // at this stage.
424 child_process_launcher_.reset(new ChildProcessLauncher( 424 child_process_launcher_.reset(new ChildProcessLauncher(
425 #if defined(OS_WIN) 425 #if defined(OS_WIN)
426 FilePath(), 426 FilePath(),
427 #elif defined(OS_POSIX) 427 #elif defined(OS_POSIX)
428 renderer_prefix.empty(), 428 renderer_prefix.empty(),
429 base::environment_vector(), 429 base::EnvironmentVector(),
430 channel_->TakeClientFileDescriptor(), 430 channel_->TakeClientFileDescriptor(),
431 #endif 431 #endif
432 cmd_line, 432 cmd_line,
433 this)); 433 this));
434 434
435 fast_shutdown_started_ = false; 435 fast_shutdown_started_ = false;
436 } 436 }
437 437
438 is_initialized_ = true; 438 is_initialized_ = true;
439 return true; 439 return true;
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 // Only honor the request if appropriate persmissions are granted. 1293 // Only honor the request if appropriate persmissions are granted.
1294 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1294 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1295 path)) 1295 path))
1296 content::GetContentClient()->browser()->OpenItem(path); 1296 content::GetContentClient()->browser()->OpenItem(path);
1297 } 1297 }
1298 1298
1299 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1299 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1300 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1300 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1301 MHTMLGenerated(job_id, data_size); 1301 MHTMLGenerated(job_id, data_size);
1302 } 1302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698