| 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/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 #include "content/public/browser/render_process_host.h" | 86 #include "content/public/browser/render_process_host.h" |
| 87 #include "content/public/browser/tracing_controller.h" | 87 #include "content/public/browser/tracing_controller.h" |
| 88 #include "content/public/common/content_client.h" | 88 #include "content/public/common/content_client.h" |
| 89 #include "content/public/common/content_features.h" | 89 #include "content/public/common/content_features.h" |
| 90 #include "content/public/common/content_switches.h" | 90 #include "content/public/common/content_switches.h" |
| 91 #include "content/public/common/main_function_params.h" | 91 #include "content/public/common/main_function_params.h" |
| 92 #include "content/public/common/result_codes.h" | 92 #include "content/public/common/result_codes.h" |
| 93 #include "device/battery/battery_status_service.h" | 93 #include "device/battery/battery_status_service.h" |
| 94 #include "device/gamepad/gamepad_service.h" | 94 #include "device/gamepad/gamepad_service.h" |
| 95 #include "device/sensors/device_sensor_service.h" | 95 #include "device/sensors/device_sensor_service.h" |
| 96 #include "gpu/vulkan/features.h" | |
| 97 #include "media/audio/audio_system_impl.h" | 96 #include "media/audio/audio_system_impl.h" |
| 98 #include "media/base/media.h" | 97 #include "media/base/media.h" |
| 99 #include "media/base/user_input_monitor.h" | 98 #include "media/base/user_input_monitor.h" |
| 100 #include "media/midi/midi_service.h" | 99 #include "media/midi/midi_service.h" |
| 101 #include "mojo/edk/embedder/embedder.h" | 100 #include "mojo/edk/embedder/embedder.h" |
| 102 #include "mojo/edk/embedder/scoped_ipc_support.h" | 101 #include "mojo/edk/embedder/scoped_ipc_support.h" |
| 103 #include "net/base/network_change_notifier.h" | 102 #include "net/base/network_change_notifier.h" |
| 104 #include "net/socket/client_socket_factory.h" | 103 #include "net/socket/client_socket_factory.h" |
| 105 #include "net/ssl/ssl_config_service.h" | 104 #include "net/ssl/ssl_config_service.h" |
| 106 #include "ppapi/features/features.h" | 105 #include "ppapi/features/features.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 199 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 201 #include "ui/base/x/x11_util_internal.h" // nogncheck | 200 #include "ui/base/x/x11_util_internal.h" // nogncheck |
| 202 #include "ui/gfx/x/x11_connection.h" // nogncheck | 201 #include "ui/gfx/x/x11_connection.h" // nogncheck |
| 203 #include "ui/gfx/x/x11_types.h" // nogncheck | 202 #include "ui/gfx/x/x11_types.h" // nogncheck |
| 204 #endif | 203 #endif |
| 205 | 204 |
| 206 #if defined(USE_NSS_CERTS) | 205 #if defined(USE_NSS_CERTS) |
| 207 #include "crypto/nss_util.h" | 206 #include "crypto/nss_util.h" |
| 208 #endif | 207 #endif |
| 209 | 208 |
| 210 #if BUILDFLAG(ENABLE_VULKAN) | 209 #if defined(ENABLE_VULKAN) |
| 211 #include "gpu/vulkan/vulkan_implementation.h" | 210 #include "gpu/vulkan/vulkan_implementation.h" |
| 212 #endif | 211 #endif |
| 213 | 212 |
| 214 // One of the linux specific headers defines this as a macro. | 213 // One of the linux specific headers defines this as a macro. |
| 215 #ifdef DestroyAll | 214 #ifdef DestroyAll |
| 216 #undef DestroyAll | 215 #undef DestroyAll |
| 217 #endif | 216 #endif |
| 218 | 217 |
| 219 namespace content { | 218 namespace content { |
| 220 namespace { | 219 namespace { |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 | 1425 |
| 1427 indexed_db_thread_.reset(new base::Thread("IndexedDB")); | 1426 indexed_db_thread_.reset(new base::Thread("IndexedDB")); |
| 1428 indexed_db_thread_->Start(); | 1427 indexed_db_thread_->Start(); |
| 1429 | 1428 |
| 1430 HistogramSynchronizer::GetInstance(); | 1429 HistogramSynchronizer::GetInstance(); |
| 1431 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | 1430 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) |
| 1432 // Up the priority of the UI thread. | 1431 // Up the priority of the UI thread. |
| 1433 base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); | 1432 base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); |
| 1434 #endif | 1433 #endif |
| 1435 | 1434 |
| 1436 #if BUILDFLAG(ENABLE_VULKAN) | 1435 #if defined(ENABLE_VULKAN) |
| 1437 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1436 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1438 switches::kEnableVulkan)) { | 1437 switches::kEnableVulkan)) { |
| 1439 gpu::InitializeVulkan(); | 1438 gpu::InitializeVulkan(); |
| 1440 } | 1439 } |
| 1441 #endif | 1440 #endif |
| 1442 | 1441 |
| 1443 // Initialize the GPU shader cache. This needs to be initialized before | 1442 // Initialize the GPU shader cache. This needs to be initialized before |
| 1444 // BrowserGpuChannelHostFactory below, since that depends on an initialized | 1443 // BrowserGpuChannelHostFactory below, since that depends on an initialized |
| 1445 // ShaderCacheFactory. | 1444 // ShaderCacheFactory. |
| 1446 InitShaderCacheFactorySingleton( | 1445 InitShaderCacheFactorySingleton( |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), | 1787 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), |
| 1789 MediaInternals::GetInstance()); | 1788 MediaInternals::GetInstance()); |
| 1790 } | 1789 } |
| 1791 CHECK(audio_manager_); | 1790 CHECK(audio_manager_); |
| 1792 | 1791 |
| 1793 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); | 1792 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); |
| 1794 CHECK(audio_system_); | 1793 CHECK(audio_system_); |
| 1795 } | 1794 } |
| 1796 | 1795 |
| 1797 } // namespace content | 1796 } // namespace content |
| OLD | NEW |