OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // TODO(port): the ifdefs in here are a first step towards trying to determine | 5 // TODO(port): the ifdefs in here are a first step towards trying to determine |
6 // the correct abstraction for all the OS functionality required at this | 6 // the correct abstraction for all the OS functionality required at this |
7 // stage of process initialization. It should not be taken as a final | 7 // stage of process initialization. It should not be taken as a final |
8 // abstraction. | 8 // abstraction. |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "base/win_util.h" | 29 #include "base/win_util.h" |
30 #include "chrome/browser/renderer_host/render_process_host.h" | 30 #include "chrome/browser/renderer_host/render_process_host.h" |
31 #endif | 31 #endif |
32 #include "chrome/app/scoped_ole_initializer.h" | 32 #include "chrome/app/scoped_ole_initializer.h" |
33 #include "chrome/common/chrome_constants.h" | 33 #include "chrome/common/chrome_constants.h" |
34 #include "chrome/common/chrome_counters.h" | 34 #include "chrome/common/chrome_counters.h" |
35 #include "chrome/common/chrome_paths.h" | 35 #include "chrome/common/chrome_paths.h" |
36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
37 #include "chrome/common/logging_chrome.h" | 37 #include "chrome/common/logging_chrome.h" |
38 #include "chrome/common/main_function_params.h" | 38 #include "chrome/common/main_function_params.h" |
39 #if defined(OS_WIN) || defined(OS_LINUX) | |
40 #include "chrome/common/resource_bundle.h" | 39 #include "chrome/common/resource_bundle.h" |
41 #endif | |
42 #include "chrome/common/sandbox_init_wrapper.h" | 40 #include "chrome/common/sandbox_init_wrapper.h" |
43 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
44 #include "sandbox/src/sandbox.h" | 42 #include "sandbox/src/sandbox.h" |
45 #include "tools/memory_watcher/memory_watcher.h" | 43 #include "tools/memory_watcher/memory_watcher.h" |
46 #endif | 44 #endif |
47 | 45 |
48 extern int BrowserMain(const MainFunctionParams&); | 46 extern int BrowserMain(const MainFunctionParams&); |
49 extern int RendererMain(const MainFunctionParams&); | 47 extern int RendererMain(const MainFunctionParams&); |
50 extern int PluginMain(const MainFunctionParams&); | 48 extern int PluginMain(const MainFunctionParams&); |
51 | 49 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 328 |
331 _Module.Term(); | 329 _Module.Term(); |
332 #endif | 330 #endif |
333 | 331 |
334 logging::CleanupChromeLogging(); | 332 logging::CleanupChromeLogging(); |
335 | 333 |
336 return rv; | 334 return rv; |
337 } | 335 } |
338 | 336 |
339 | 337 |
OLD | NEW |