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

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

Issue 7841009: export RendererMain (Closed)
Patch Set: fix stupid preprocessor typo Created 9 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
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | content/common/content_export.h » ('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) 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/metrics/stats_table.h" 15 #include "base/metrics/stats_table.h"
16 #include "base/process_util.h" 16 #include "base/process_util.h"
17 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "content/app/content_main_delegate.h" 19 #include "content/app/content_main_delegate.h"
20 #include "content/common/content_constants.h" 20 #include "content/common/content_constants.h"
21 #include "content/common/content_paths.h" 21 #include "content/common/content_paths.h"
22 #include "content/common/content_switches.h" 22 #include "content/common/content_switches.h"
23 #include "content/common/main_function_params.h" 23 #include "content/common/main_function_params.h"
24 #include "content/common/sandbox_init_wrapper.h" 24 #include "content/common/sandbox_init_wrapper.h"
25 #include "content/common/set_process_title.h" 25 #include "content/common/set_process_title.h"
26 #include "content/renderer/renderer_main.h"
26 #include "crypto/nss_util.h" 27 #include "crypto/nss_util.h"
27 #include "ipc/ipc_switches.h" 28 #include "ipc/ipc_switches.h"
28 #include "ui/base/ui_base_switches.h" 29 #include "ui/base/ui_base_switches.h"
29 #include "ui/base/ui_base_paths.h" 30 #include "ui/base/ui_base_paths.h"
30 31
31 #if defined(OS_WIN) 32 #if defined(OS_WIN)
32 #include <atlbase.h> 33 #include <atlbase.h>
33 #include <atlapp.h> 34 #include <atlapp.h>
34 #include <new.h> 35 #include <new.h>
35 #include <malloc.h> 36 #include <malloc.h>
(...skipping 15 matching lines...) Expand all
51 52
52 #endif // OS_POSIX 53 #endif // OS_POSIX
53 54
54 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) 55 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC)
55 extern "C" { 56 extern "C" {
56 int tc_set_new_mode(int mode); 57 int tc_set_new_mode(int mode);
57 } 58 }
58 #endif 59 #endif
59 60
60 extern int BrowserMain(const MainFunctionParams&); 61 extern int BrowserMain(const MainFunctionParams&);
61 extern int RendererMain(const MainFunctionParams&);
62 extern int GpuMain(const MainFunctionParams&); 62 extern int GpuMain(const MainFunctionParams&);
63 extern int PluginMain(const MainFunctionParams&); 63 extern int PluginMain(const MainFunctionParams&);
64 extern int PpapiPluginMain(const MainFunctionParams&); 64 extern int PpapiPluginMain(const MainFunctionParams&);
65 extern int PpapiBrokerMain(const MainFunctionParams&); 65 extern int PpapiBrokerMain(const MainFunctionParams&);
66 extern int WorkerMain(const MainFunctionParams&); 66 extern int WorkerMain(const MainFunctionParams&);
67 extern int UtilityMain(const MainFunctionParams&); 67 extern int UtilityMain(const MainFunctionParams&);
68 #if defined(OS_POSIX) && !defined(OS_MACOSX) 68 #if defined(OS_POSIX) && !defined(OS_MACOSX)
69 extern int ZygoteMain(const MainFunctionParams&, 69 extern int ZygoteMain(const MainFunctionParams&,
70 ZygoteForkDelegate* forkdelegate); 70 ZygoteForkDelegate* forkdelegate);
71 #endif 71 #endif
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 _CrtDumpMemoryLeaks(); 488 _CrtDumpMemoryLeaks();
489 #endif // _CRTDBG_MAP_ALLOC 489 #endif // _CRTDBG_MAP_ALLOC
490 490
491 _Module.Term(); 491 _Module.Term();
492 #endif // OS_WIN 492 #endif // OS_WIN
493 493
494 return exit_code; 494 return exit_code;
495 } 495 }
496 496
497 } // namespace content 497 } // namespace content
OLDNEW
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | content/common/content_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698