| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/mac/scoped_nsautorelease_pool.h" | 12 #include "base/mac/scoped_nsautorelease_pool.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/metrics/stats_table.h" | 14 #include "base/metrics/stats_table.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 "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
| 18 #include "content/app/content_main_delegate.h" | 18 #include "content/app/content_main_delegate.h" |
| 19 #include "content/app/startup_helper_win.h" | 19 #include "content/app/startup_helper_win.h" |
| 20 #include "content/browser/browser_main.h" | 20 #include "content/browser/browser_main.h" |
| 21 #include "content/common/content_constants.h" | 21 #include "content/common/content_constants.h" |
| 22 #include "content/common/content_paths.h" | 22 #include "content/common/content_paths.h" |
| 23 #include "content/common/content_switches.h" | 23 #include "content/common/content_switches.h" |
| 24 #include "content/common/main_function_params.h" | 24 #include "content/common/main_function_params.h" |
| 25 #include "content/common/sandbox_init_wrapper.h" | 25 #include "content/common/sandbox_init_wrapper.h" |
| 26 #include "content/common/set_process_title.h" | 26 #include "content/common/set_process_title.h" |
| 27 #include "content/renderer/renderer_main.h" | |
| 28 #include "crypto/nss_util.h" | 27 #include "crypto/nss_util.h" |
| 29 #include "ipc/ipc_switches.h" | 28 #include "ipc/ipc_switches.h" |
| 30 #include "ui/base/ui_base_switches.h" | 29 #include "ui/base/ui_base_switches.h" |
| 31 #include "ui/base/ui_base_paths.h" | 30 #include "ui/base/ui_base_paths.h" |
| 32 | 31 |
| 33 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 34 #include <atlbase.h> | 33 #include <atlbase.h> |
| 35 #include <atlapp.h> | 34 #include <atlapp.h> |
| 36 #include <malloc.h> | 35 #include <malloc.h> |
| 37 #elif defined(OS_MACOSX) | 36 #elif defined(OS_MACOSX) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 55 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) | 54 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) |
| 56 extern "C" { | 55 extern "C" { |
| 57 int tc_set_new_mode(int mode); | 56 int tc_set_new_mode(int mode); |
| 58 } | 57 } |
| 59 #endif | 58 #endif |
| 60 | 59 |
| 61 extern int GpuMain(const MainFunctionParams&); | 60 extern int GpuMain(const MainFunctionParams&); |
| 62 extern int PluginMain(const MainFunctionParams&); | 61 extern int PluginMain(const MainFunctionParams&); |
| 63 extern int PpapiPluginMain(const MainFunctionParams&); | 62 extern int PpapiPluginMain(const MainFunctionParams&); |
| 64 extern int PpapiBrokerMain(const MainFunctionParams&); | 63 extern int PpapiBrokerMain(const MainFunctionParams&); |
| 64 extern int RendererMain(const MainFunctionParams&); |
| 65 extern int WorkerMain(const MainFunctionParams&); | 65 extern int WorkerMain(const MainFunctionParams&); |
| 66 extern int UtilityMain(const MainFunctionParams&); | 66 extern int UtilityMain(const MainFunctionParams&); |
| 67 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 67 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 68 extern int ZygoteMain(const MainFunctionParams&, | 68 extern int ZygoteMain(const MainFunctionParams&, |
| 69 ZygoteForkDelegate* forkdelegate); | 69 ZygoteForkDelegate* forkdelegate); |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 namespace { | 72 namespace { |
| 73 | 73 |
| 74 #if defined(OS_WIN) | 74 #if defined(OS_WIN) |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 _CrtDumpMemoryLeaks(); | 448 _CrtDumpMemoryLeaks(); |
| 449 #endif // _CRTDBG_MAP_ALLOC | 449 #endif // _CRTDBG_MAP_ALLOC |
| 450 | 450 |
| 451 _Module.Term(); | 451 _Module.Term(); |
| 452 #endif // OS_WIN | 452 #endif // OS_WIN |
| 453 | 453 |
| 454 return exit_code; | 454 return exit_code; |
| 455 } | 455 } |
| 456 | 456 |
| 457 } // namespace content | 457 } // namespace content |
| OLD | NEW |