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

Side by Side Diff: content/app/content_main_runner.cc

Issue 1137453002: content: Pass IOSurface references using Mach IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove parameter from MachBroker::InitChildProcess Created 5 years, 7 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 #include "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // It's important not to allocate the ports for processes which don't 653 // It's important not to allocate the ports for processes which don't
654 // register with the power monitor - see crbug.com/88867. 654 // register with the power monitor - see crbug.com/88867.
655 if (process_type.empty() || 655 if (process_type.empty() ||
656 (delegate_ && 656 (delegate_ &&
657 delegate_->ProcessRegistersWithSystemProcess(process_type))) { 657 delegate_->ProcessRegistersWithSystemProcess(process_type))) {
658 base::PowerMonitorDeviceSource::AllocateSystemIOPorts(); 658 base::PowerMonitorDeviceSource::AllocateSystemIOPorts();
659 } 659 }
660 660
661 if (!process_type.empty() && 661 if (!process_type.empty() &&
662 (!delegate_ || delegate_->ShouldSendMachPort(process_type))) { 662 (!delegate_ || delegate_->ShouldSendMachPort(process_type))) {
663 MachBroker::ChildSendTaskPortToParent(); 663 MachBroker::InitChildProcess();
664 } 664 }
665 #elif defined(OS_WIN) 665 #elif defined(OS_WIN)
666 SetupCRT(command_line); 666 SetupCRT(command_line);
667 #endif 667 #endif
668 668
669 #if defined(OS_POSIX) 669 #if defined(OS_POSIX)
670 if (!process_type.empty()) { 670 if (!process_type.empty()) {
671 // When you hit Ctrl-C in a terminal running the browser 671 // When you hit Ctrl-C in a terminal running the browser
672 // process, a SIGINT is delivered to the entire process group. 672 // process, a SIGINT is delivered to the entire process group.
673 // When debugging the browser process via gdb, gdb catches the 673 // When debugging the browser process via gdb, gdb catches the
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 845
846 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 846 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
847 }; 847 };
848 848
849 // static 849 // static
850 ContentMainRunner* ContentMainRunner::Create() { 850 ContentMainRunner* ContentMainRunner::Create() {
851 return new ContentMainRunnerImpl(); 851 return new ContentMainRunnerImpl();
852 } 852 }
853 853
854 } // namespace content 854 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/child_process_launcher.cc » ('j') | content/common/mac/io_surface_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698