| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "base/profiler/scoped_tracker.h" | 39 #include "base/profiler/scoped_tracker.h" |
| 40 #include "base/strings/string_number_conversions.h" | 40 #include "base/strings/string_number_conversions.h" |
| 41 #include "base/strings/string_util.h" | 41 #include "base/strings/string_util.h" |
| 42 #include "base/strings/stringprintf.h" | 42 #include "base/strings/stringprintf.h" |
| 43 #include "base/trace_event/trace_event.h" | 43 #include "base/trace_event/trace_event.h" |
| 44 #include "build/build_config.h" | 44 #include "build/build_config.h" |
| 45 #include "components/tracing/browser/trace_config_file.h" | 45 #include "components/tracing/browser/trace_config_file.h" |
| 46 #include "components/tracing/common/trace_to_console.h" | 46 #include "components/tracing/common/trace_to_console.h" |
| 47 #include "components/tracing/common/tracing_switches.h" | 47 #include "components/tracing/common/tracing_switches.h" |
| 48 #include "content/app/mojo/mojo_init.h" | 48 #include "content/app/mojo/mojo_init.h" |
| 49 #include "content/browser/browser_main.h" | |
| 50 #include "content/browser/renderer_host/render_process_host_impl.h" | |
| 51 #include "content/browser/utility_process_host_impl.h" | |
| 52 #include "content/common/set_process_title.h" | 49 #include "content/common/set_process_title.h" |
| 53 #include "content/common/url_schemes.h" | 50 #include "content/common/url_schemes.h" |
| 54 #include "content/gpu/in_process_gpu_thread.h" | |
| 55 #include "content/public/app/content_main.h" | 51 #include "content/public/app/content_main.h" |
| 56 #include "content/public/app/content_main_delegate.h" | 52 #include "content/public/app/content_main_delegate.h" |
| 57 #include "content/public/browser/content_browser_client.h" | |
| 58 #include "content/public/common/content_client.h" | 53 #include "content/public/common/content_client.h" |
| 59 #include "content/public/common/content_constants.h" | 54 #include "content/public/common/content_constants.h" |
| 60 #include "content/public/common/content_paths.h" | 55 #include "content/public/common/content_paths.h" |
| 61 #include "content/public/common/content_switches.h" | 56 #include "content/public/common/content_switches.h" |
| 62 #include "content/public/common/main_function_params.h" | 57 #include "content/public/common/main_function_params.h" |
| 63 #include "content/public/common/sandbox_init.h" | 58 #include "content/public/common/sandbox_init.h" |
| 64 #include "content/public/gpu/content_gpu_client.h" | |
| 65 #include "content/public/renderer/content_renderer_client.h" | |
| 66 #include "content/public/utility/content_utility_client.h" | |
| 67 #include "content/renderer/in_process_renderer_thread.h" | |
| 68 #include "content/utility/in_process_utility_thread.h" | |
| 69 #include "ipc/ipc_descriptors.h" | 59 #include "ipc/ipc_descriptors.h" |
| 70 #include "media/base/media.h" | 60 #include "media/base/media.h" |
| 71 #include "ppapi/features/features.h" | 61 #include "ppapi/features/features.h" |
| 72 #include "ui/base/ui_base_paths.h" | 62 #include "ui/base/ui_base_paths.h" |
| 73 #include "ui/base/ui_base_switches.h" | 63 #include "ui/base/ui_base_switches.h" |
| 74 | 64 |
| 75 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) && \ | 65 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) && \ |
| 76 !defined(CHROME_MULTIPLE_DLL_BROWSER) | 66 !defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 77 #include "gin/v8_initializer.h" | 67 #include "gin/v8_initializer.h" |
| 78 #endif | 68 #endif |
| (...skipping 28 matching lines...) Expand all Loading... |
| 107 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) | 97 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 108 #include "content/zygote/zygote_main.h" | 98 #include "content/zygote/zygote_main.h" |
| 109 #endif | 99 #endif |
| 110 | 100 |
| 111 #endif // OS_POSIX | 101 #endif // OS_POSIX |
| 112 | 102 |
| 113 #if defined(USE_NSS_CERTS) | 103 #if defined(USE_NSS_CERTS) |
| 114 #include "crypto/nss_util.h" | 104 #include "crypto/nss_util.h" |
| 115 #endif | 105 #endif |
| 116 | 106 |
| 107 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 108 #include "content/public/gpu/content_gpu_client.h" |
| 109 #include "content/public/renderer/content_renderer_client.h" |
| 110 #include "content/public/utility/content_utility_client.h" |
| 111 #endif |
| 112 |
| 113 #if !defined(CHROME_MULTIPLE_DLL_CHILD) |
| 114 #include "content/browser/browser_main.h" |
| 115 #include "content/public/browser/content_browser_client.h" |
| 116 #endif |
| 117 |
| 117 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) && !defined(CHROME_MULTIPLE_DLL_CHILD) | 118 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) && !defined(CHROME_MULTIPLE_DLL_CHILD) |
| 118 #include "content/browser/gpu/gpu_main_thread_factory.h" | 119 #include "content/browser/gpu/gpu_main_thread_factory.h" |
| 120 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 121 #include "content/browser/utility_process_host_impl.h" |
| 122 #include "content/gpu/in_process_gpu_thread.h" |
| 123 #include "content/renderer/in_process_renderer_thread.h" |
| 124 #include "content/utility/in_process_utility_thread.h" |
| 119 #endif | 125 #endif |
| 120 | 126 |
| 121 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 127 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 122 #include "content/common/media/cdm_host_files.h" | 128 #include "content/common/media/cdm_host_files.h" |
| 123 #endif | 129 #endif |
| 124 | 130 |
| 125 namespace content { | 131 namespace content { |
| 126 extern int GpuMain(const content::MainFunctionParams&); | 132 extern int GpuMain(const content::MainFunctionParams&); |
| 127 #if BUILDFLAG(ENABLE_PLUGINS) | 133 #if BUILDFLAG(ENABLE_PLUGINS) |
| 128 #if !defined(OS_LINUX) | 134 #if !defined(OS_LINUX) |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 902 |
| 897 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 903 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
| 898 }; | 904 }; |
| 899 | 905 |
| 900 // static | 906 // static |
| 901 ContentMainRunner* ContentMainRunner::Create() { | 907 ContentMainRunner* ContentMainRunner::Create() { |
| 902 return new ContentMainRunnerImpl(); | 908 return new ContentMainRunnerImpl(); |
| 903 } | 909 } |
| 904 | 910 |
| 905 } // namespace content | 911 } // namespace content |
| OLD | NEW |