OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/app/content_main.h" | 5 #include "content/app/content_main.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
11 #include "base/i18n/icu_util.h" | 11 #include "base/i18n/icu_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/mac/scoped_nsautorelease_pool.h" | 13 #include "base/mac/scoped_nsautorelease_pool.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "content/app/content_main_delegate.h" | 17 #include "content/app/content_main_delegate.h" |
18 #include "content/common/content_paths.h" | 18 #include "content/common/content_paths.h" |
19 #include "content/common/content_switches.h" | 19 #include "content/common/content_switches.h" |
20 #include "content/common/main_function_params.h" | 20 #include "content/common/main_function_params.h" |
21 #include "content/common/sandbox_init_wrapper.h" | 21 #include "content/common/sandbox_init_wrapper.h" |
22 #include "content/common/set_process_title.h" | 22 #include "content/common/set_process_title.h" |
| 23 #include "content/renderer/renderer_main.h" |
23 #include "crypto/nss_util.h" | 24 #include "crypto/nss_util.h" |
24 #include "ui/base/ui_base_switches.h" | 25 #include "ui/base/ui_base_switches.h" |
25 #include "ui/base/ui_base_paths.h" | 26 #include "ui/base/ui_base_paths.h" |
26 | 27 |
27 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
28 #include <atlbase.h> | 29 #include <atlbase.h> |
29 #include <atlapp.h> | 30 #include <atlapp.h> |
30 #include <new.h> | 31 #include <new.h> |
31 #include <malloc.h> | 32 #include <malloc.h> |
32 #elif defined(OS_MACOSX) | 33 #elif defined(OS_MACOSX) |
(...skipping 13 matching lines...) Expand all Loading... |
46 #endif | 47 #endif |
47 | 48 |
48 #endif // OS_POSIX | 49 #endif // OS_POSIX |
49 | 50 |
50 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) | 51 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) |
51 extern "C" { | 52 extern "C" { |
52 int tc_set_new_mode(int mode); | 53 int tc_set_new_mode(int mode); |
53 } | 54 } |
54 #endif | 55 #endif |
55 | 56 |
56 extern int RendererMain(const MainFunctionParams&); | |
57 extern int GpuMain(const MainFunctionParams&); | 57 extern int GpuMain(const MainFunctionParams&); |
58 extern int PluginMain(const MainFunctionParams&); | 58 extern int PluginMain(const MainFunctionParams&); |
59 extern int PpapiPluginMain(const MainFunctionParams&); | 59 extern int PpapiPluginMain(const MainFunctionParams&); |
60 extern int PpapiBrokerMain(const MainFunctionParams&); | 60 extern int PpapiBrokerMain(const MainFunctionParams&); |
61 extern int WorkerMain(const MainFunctionParams&); | 61 extern int WorkerMain(const MainFunctionParams&); |
62 extern int UtilityMain(const MainFunctionParams&); | 62 extern int UtilityMain(const MainFunctionParams&); |
63 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 63 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
64 extern int ZygoteMain(const MainFunctionParams&, | 64 extern int ZygoteMain(const MainFunctionParams&, |
65 ZygoteForkDelegate* forkdelegate); | 65 ZygoteForkDelegate* forkdelegate); |
66 #endif | 66 #endif |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 _CrtDumpMemoryLeaks(); | 436 _CrtDumpMemoryLeaks(); |
437 #endif // _CRTDBG_MAP_ALLOC | 437 #endif // _CRTDBG_MAP_ALLOC |
438 | 438 |
439 _Module.Term(); | 439 _Module.Term(); |
440 #endif // OS_WIN | 440 #endif // OS_WIN |
441 | 441 |
442 return exit_code; | 442 return exit_code; |
443 } | 443 } |
444 | 444 |
445 } // namespace content | 445 } // namespace content |
OLD | NEW |