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

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

Issue 65193003: Clear SingleProcess and InProcessGPU logic. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 #endif // !CHROME_MULTIPLE_DLL_BROWSER 430 #endif // !CHROME_MULTIPLE_DLL_BROWSER
431 }; 431 };
432 432
433 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) 433 #if !defined(CHROME_MULTIPLE_DLL_BROWSER)
434 UtilityProcessHost::RegisterUtilityMainThreadFactory( 434 UtilityProcessHost::RegisterUtilityMainThreadFactory(
435 CreateInProcessUtilityThread); 435 CreateInProcessUtilityThread);
436 RenderProcessHost::RegisterRendererMainThreadFactory( 436 RenderProcessHost::RegisterRendererMainThreadFactory(
437 CreateInProcessRendererThread); 437 CreateInProcessRendererThread);
438 GpuProcessHost::RegisterGpuMainThreadFactory( 438 GpuProcessHost::RegisterGpuMainThreadFactory(
439 CreateInProcessGpuThread); 439 CreateInProcessGpuThread);
440 #else
441 // SingleProcess and InProcessGPU mode are not supported
442 // in multiple-dll mode currently.
443 CHECK(!(command_line.HasSwitch(switches::kSingleProcess) ||
444 command_line.HasSwitch(switches::kInProcessGPU)));
piman 2013/11/07 22:09:52 I suspect some people currently use that. What's b
dshwang 2013/11/08 10:05:56 under defined(CHROME_MULTIPLE_DLL_BROWSER), we don
440 #endif 445 #endif
441 446
442 for (size_t i = 0; i < arraysize(kMainFunctions); ++i) { 447 for (size_t i = 0; i < arraysize(kMainFunctions); ++i) {
443 if (process_type == kMainFunctions[i].name) { 448 if (process_type == kMainFunctions[i].name) {
444 if (delegate) { 449 if (delegate) {
445 int exit_code = delegate->RunProcess(process_type, 450 int exit_code = delegate->RunProcess(process_type,
446 main_function_params); 451 main_function_params);
447 #if defined(OS_ANDROID) 452 #if defined(OS_ANDROID)
448 // In Android's browser process, the negative exit code doesn't mean the 453 // In Android's browser process, the negative exit code doesn't mean the
449 // default behavior should be used as the UI message loop is managed by 454 // default behavior should be used as the UI message loop is managed by
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 840
836 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 841 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
837 }; 842 };
838 843
839 // static 844 // static
840 ContentMainRunner* ContentMainRunner::Create() { 845 ContentMainRunner* ContentMainRunner::Create() {
841 return new ContentMainRunnerImpl(); 846 return new ContentMainRunnerImpl();
842 } 847 }
843 848
844 } // namespace content 849 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698