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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2412493003: Revert of Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Created 4 years, 2 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 | « content/browser/BUILD.gn ('k') | content/public/renderer/BUILD.gn » ('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) 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "device/battery/battery_status_service.h" 81 #include "device/battery/battery_status_service.h"
82 #include "device/time_zone_monitor/time_zone_monitor.h" 82 #include "device/time_zone_monitor/time_zone_monitor.h"
83 #include "media/base/media.h" 83 #include "media/base/media.h"
84 #include "media/base/user_input_monitor.h" 84 #include "media/base/user_input_monitor.h"
85 #include "media/midi/midi_manager.h" 85 #include "media/midi/midi_manager.h"
86 #include "mojo/edk/embedder/embedder.h" 86 #include "mojo/edk/embedder/embedder.h"
87 #include "mojo/edk/embedder/scoped_ipc_support.h" 87 #include "mojo/edk/embedder/scoped_ipc_support.h"
88 #include "net/base/network_change_notifier.h" 88 #include "net/base/network_change_notifier.h"
89 #include "net/socket/client_socket_factory.h" 89 #include "net/socket/client_socket_factory.h"
90 #include "net/ssl/ssl_config_service.h" 90 #include "net/ssl/ssl_config_service.h"
91 #include "ppapi/features/features.h"
92 #include "services/shell/runner/common/client_util.h" 91 #include "services/shell/runner/common/client_util.h"
93 #include "skia/ext/event_tracer_impl.h" 92 #include "skia/ext/event_tracer_impl.h"
94 #include "skia/ext/skia_memory_dump_provider.h" 93 #include "skia/ext/skia_memory_dump_provider.h"
95 #include "sql/sql_memory_dump_provider.h" 94 #include "sql/sql_memory_dump_provider.h"
96 #include "ui/base/clipboard/clipboard.h" 95 #include "ui/base/clipboard/clipboard.h"
97 96
98 #if defined(USE_AURA) || defined(OS_MACOSX) 97 #if defined(USE_AURA) || defined(OS_MACOSX)
99 #include "content/browser/compositor/image_transport_factory.h" 98 #include "content/browser/compositor/image_transport_factory.h"
100 #endif 99 #endif
101 100
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 #if !defined(OS_ANDROID) 170 #if !defined(OS_ANDROID)
172 #include "content/public/browser/zygote_handle_linux.h" 171 #include "content/public/browser/zygote_handle_linux.h"
173 #endif // !defined(OS_ANDROID) 172 #endif // !defined(OS_ANDROID)
174 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 173 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
175 174
176 175
177 #if defined(ENABLE_PLUGINS) 176 #if defined(ENABLE_PLUGINS)
178 #include "content/browser/plugin_service_impl.h" 177 #include "content/browser/plugin_service_impl.h"
179 #endif 178 #endif
180 179
181 #if defined(ENABLE_MOJO_CDM) && BUILDFLAG(ENABLE_PEPPER_CDMS) 180 #if defined(ENABLE_MOJO_CDM) && defined(ENABLE_PEPPER_CDMS)
182 #include "content/browser/media/cdm_service_impl.h" 181 #include "content/browser/media/cdm_service_impl.h"
183 #endif 182 #endif
184 183
185 #if defined(USE_X11) 184 #if defined(USE_X11)
186 #include "gpu/config/gpu_driver_bug_workaround_type.h" 185 #include "gpu/config/gpu_driver_bug_workaround_type.h"
187 #include "ui/base/x/x11_util_internal.h" // nogncheck 186 #include "ui/base/x/x11_util_internal.h" // nogncheck
188 #include "ui/gfx/x/x11_connection.h" // nogncheck 187 #include "ui/gfx/x/x11_connection.h" // nogncheck
189 #include "ui/gfx/x/x11_types.h" // nogncheck 188 #include "ui/gfx/x/x11_types.h" // nogncheck
190 #endif 189 #endif
191 190
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 // Prior to any processing happening on the IO thread, we create the 763 // Prior to any processing happening on the IO thread, we create the
765 // plugin service as it is predominantly used from the IO thread, 764 // plugin service as it is predominantly used from the IO thread,
766 // but must be created on the main thread. The service ctor is 765 // but must be created on the main thread. The service ctor is
767 // inexpensive and does not invoke the io_thread() accessor. 766 // inexpensive and does not invoke the io_thread() accessor.
768 { 767 {
769 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads:PluginService"); 768 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads:PluginService");
770 PluginService::GetInstance()->Init(); 769 PluginService::GetInstance()->Init();
771 } 770 }
772 #endif 771 #endif
773 772
774 #if defined(ENABLE_MOJO_CDM) && BUILDFLAG(ENABLE_PEPPER_CDMS) 773 #if defined(ENABLE_MOJO_CDM) && defined(ENABLE_PEPPER_CDMS)
775 // Prior to any processing happening on the IO thread, we create the 774 // Prior to any processing happening on the IO thread, we create the
776 // CDM service as it is predominantly used from the IO thread. This must 775 // CDM service as it is predominantly used from the IO thread. This must
777 // be called on the main thread since it involves file path checks. 776 // be called on the main thread since it involves file path checks.
778 CdmService::GetInstance()->Init(); 777 CdmService::GetInstance()->Init();
779 #endif 778 #endif
780 779
781 #if defined(OS_MACOSX) 780 #if defined(OS_MACOSX)
782 // The WindowResizeHelper allows the UI thread to wait on specific renderer 781 // The WindowResizeHelper allows the UI thread to wait on specific renderer
783 // and GPU messages from the IO thread. Initializing it before the IO thread 782 // and GPU messages from the IO thread. Initializing it before the IO thread
784 // starts ensures the affected IO thread messages always have somewhere to go. 783 // starts ensures the affected IO thread messages always have somewhere to go.
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = 1570 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner =
1572 audio_thread_->task_runner(); 1571 audio_thread_->task_runner();
1573 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), 1572 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner),
1574 std::move(worker_task_runner), 1573 std::move(worker_task_runner),
1575 MediaInternals::GetInstance()); 1574 MediaInternals::GetInstance());
1576 } 1575 }
1577 CHECK(audio_manager_); 1576 CHECK(audio_manager_);
1578 } 1577 }
1579 1578
1580 } // namespace content 1579 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/public/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698