| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 #endif // OS_POSIX | 86 #endif // OS_POSIX |
| 87 | 87 |
| 88 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) | 88 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) |
| 89 extern "C" { | 89 extern "C" { |
| 90 int tc_set_new_mode(int mode); | 90 int tc_set_new_mode(int mode); |
| 91 } | 91 } |
| 92 #endif | 92 #endif |
| 93 | 93 |
| 94 namespace content { |
| 94 extern int GpuMain(const content::MainFunctionParams&); | 95 extern int GpuMain(const content::MainFunctionParams&); |
| 95 namespace content { | |
| 96 extern int PluginMain(const content::MainFunctionParams&); | 96 extern int PluginMain(const content::MainFunctionParams&); |
| 97 extern int PpapiPluginMain(const MainFunctionParams&); | 97 extern int PpapiPluginMain(const MainFunctionParams&); |
| 98 extern int PpapiBrokerMain(const MainFunctionParams&); | 98 extern int PpapiBrokerMain(const MainFunctionParams&); |
| 99 extern int RendererMain(const content::MainFunctionParams&); | 99 extern int RendererMain(const content::MainFunctionParams&); |
| 100 extern int UtilityMain(const MainFunctionParams&); | 100 extern int UtilityMain(const MainFunctionParams&); |
| 101 extern int WorkerMain(const MainFunctionParams&); | 101 extern int WorkerMain(const MainFunctionParams&); |
| 102 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 102 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 103 extern int ZygoteMain(const MainFunctionParams&, | 103 extern int ZygoteMain(const MainFunctionParams&, |
| 104 ZygoteForkDelegate* forkdelegate); | 104 ZygoteForkDelegate* forkdelegate); |
| 105 #endif | 105 #endif |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 | 799 |
| 800 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 800 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 801 }; | 801 }; |
| 802 | 802 |
| 803 // static | 803 // static |
| 804 ContentMainRunner* ContentMainRunner::Create() { | 804 ContentMainRunner* ContentMainRunner::Create() { |
| 805 return new ContentMainRunnerImpl(); | 805 return new ContentMainRunnerImpl(); |
| 806 } | 806 } |
| 807 | 807 |
| 808 } // namespace content | 808 } // namespace content |
| OLD | NEW |