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

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

Issue 23452016: Fix names of in-process threads, tidy gpu DEPS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps for webview 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
« no previous file with comments | « no previous file | content/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 #include "base/process/memory.h" 22 #include "base/process/memory.h"
23 #include "base/process/process_handle.h" 23 #include "base/process/process_handle.h"
24 #include "base/profiler/alternate_timer.h" 24 #include "base/profiler/alternate_timer.h"
25 #include "base/strings/string_number_conversions.h" 25 #include "base/strings/string_number_conversions.h"
26 #include "base/strings/string_util.h" 26 #include "base/strings/string_util.h"
27 #include "base/strings/stringprintf.h" 27 #include "base/strings/stringprintf.h"
28 #include "content/browser/browser_main.h" 28 #include "content/browser/browser_main.h"
29 #include "content/browser/gpu/gpu_process_host.h" 29 #include "content/browser/gpu/gpu_process_host.h"
30 #include "content/common/set_process_title.h" 30 #include "content/common/set_process_title.h"
31 #include "content/common/url_schemes.h" 31 #include "content/common/url_schemes.h"
32 #include "content/gpu/gpu_main_thread.h" 32 #include "content/gpu/in_process_gpu_thread.h"
33 #include "content/public/app/content_main_delegate.h" 33 #include "content/public/app/content_main_delegate.h"
34 #include "content/public/app/startup_helper_win.h" 34 #include "content/public/app/startup_helper_win.h"
35 #include "content/public/browser/content_browser_client.h" 35 #include "content/public/browser/content_browser_client.h"
36 #include "content/public/browser/render_process_host.h" 36 #include "content/public/browser/render_process_host.h"
37 #include "content/public/browser/utility_process_host.h" 37 #include "content/public/browser/utility_process_host.h"
38 #include "content/public/common/content_client.h" 38 #include "content/public/common/content_client.h"
39 #include "content/public/common/content_constants.h" 39 #include "content/public/common/content_constants.h"
40 #include "content/public/common/content_paths.h" 40 #include "content/public/common/content_paths.h"
41 #include "content/public/common/content_switches.h" 41 #include "content/public/common/content_switches.h"
42 #include "content/public/common/main_function_params.h" 42 #include "content/public/common/main_function_params.h"
43 #include "content/public/common/sandbox_init.h" 43 #include "content/public/common/sandbox_init.h"
44 #include "content/renderer/renderer_main_thread.h" 44 #include "content/renderer/in_process_renderer_thread.h"
45 #include "content/utility/utility_main_thread.h" 45 #include "content/utility/in_process_utility_thread.h"
46 #include "crypto/nss_util.h" 46 #include "crypto/nss_util.h"
47 #include "ipc/ipc_switches.h" 47 #include "ipc/ipc_switches.h"
48 #include "media/base/media.h" 48 #include "media/base/media.h"
49 #include "sandbox/win/src/sandbox_types.h" 49 #include "sandbox/win/src/sandbox_types.h"
50 #include "ui/base/ui_base_paths.h" 50 #include "ui/base/ui_base_paths.h"
51 #include "ui/base/ui_base_switches.h" 51 #include "ui/base/ui_base_switches.h"
52 #include "ui/base/win/dpi.h" 52 #include "ui/base/win/dpi.h"
53 #include "webkit/common/user_agent/user_agent.h" 53 #include "webkit/common/user_agent/user_agent.h"
54 54
55 #if defined(USE_TCMALLOC) 55 #if defined(USE_TCMALLOC)
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 { switches::kPpapiPluginProcess, PpapiPluginMain }, 424 { switches::kPpapiPluginProcess, PpapiPluginMain },
425 { switches::kPpapiBrokerProcess, PpapiBrokerMain }, 425 { switches::kPpapiBrokerProcess, PpapiBrokerMain },
426 #endif // ENABLE_PLUGINS 426 #endif // ENABLE_PLUGINS
427 { switches::kUtilityProcess, UtilityMain }, 427 { switches::kUtilityProcess, UtilityMain },
428 { switches::kRendererProcess, RendererMain }, 428 { switches::kRendererProcess, RendererMain },
429 { switches::kGpuProcess, GpuMain }, 429 { switches::kGpuProcess, GpuMain },
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(CreateUtilityMainThread); 434 UtilityProcessHost::RegisterUtilityMainThreadFactory(
435 CreateInProcessUtilityThread);
435 RenderProcessHost::RegisterRendererMainThreadFactory( 436 RenderProcessHost::RegisterRendererMainThreadFactory(
436 CreateRendererMainThread); 437 CreateInProcessRendererThread);
437 GpuProcessHost::RegisterGpuMainThreadFactory(CreateGpuMainThread); 438 GpuProcessHost::RegisterGpuMainThreadFactory(
439 CreateInProcessGpuThread);
438 #endif 440 #endif
439 441
440 for (size_t i = 0; i < arraysize(kMainFunctions); ++i) { 442 for (size_t i = 0; i < arraysize(kMainFunctions); ++i) {
441 if (process_type == kMainFunctions[i].name) { 443 if (process_type == kMainFunctions[i].name) {
442 if (delegate) { 444 if (delegate) {
443 int exit_code = delegate->RunProcess(process_type, 445 int exit_code = delegate->RunProcess(process_type,
444 main_function_params); 446 main_function_params);
445 #if defined(OS_ANDROID) 447 #if defined(OS_ANDROID)
446 // In Android's browser process, the negative exit code doesn't mean the 448 // In Android's browser process, the negative exit code doesn't mean the
447 // default behavior should be used as the UI message loop is managed by 449 // default behavior should be used as the UI message loop is managed by
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 836
835 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 837 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
836 }; 838 };
837 839
838 // static 840 // static
839 ContentMainRunner* ContentMainRunner::Create() { 841 ContentMainRunner* ContentMainRunner::Create() {
840 return new ContentMainRunnerImpl(); 842 return new ContentMainRunnerImpl();
841 } 843 }
842 844
843 } // namespace content 845 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698