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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2434673002: media: Rename MojoMediaApplication to MediaService (Closed)
Patch Set: media: Rename MojoMediaApplication to MediaService 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 | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 #if defined(ENABLE_WAYLAND_SERVER) 338 #if defined(ENABLE_WAYLAND_SERVER)
339 #include "chrome/browser/chrome_browser_main_extra_parts_exo.h" 339 #include "chrome/browser/chrome_browser_main_extra_parts_exo.h"
340 #endif 340 #endif
341 341
342 #if defined(ENABLE_MOJO_MEDIA) 342 #if defined(ENABLE_MOJO_MEDIA)
343 #include "chrome/browser/media/output_protection_impl.h" 343 #include "chrome/browser/media/output_protection_impl.h"
344 #endif 344 #endif
345 345
346 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 346 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
347 #include "media/mojo/services/mojo_media_application_factory.h" // nogncheck 347 #include "media/mojo/services/media_service_factory.h" // nogncheck
348 #endif 348 #endif
349 349
350 #if defined(OS_CHROMEOS) 350 #if defined(OS_CHROMEOS)
351 #include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h " 351 #include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h "
352 #endif 352 #endif
353 353
354 using base::FileDescriptor; 354 using base::FileDescriptor;
355 using blink::WebWindowFeatures; 355 using blink::WebWindowFeatures;
356 using content::BrowserThread; 356 using content::BrowserThread;
357 using content::BrowserURLHandler; 357 using content::BrowserURLHandler;
(...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after
2991 content::GpuProcessHost* render_process_host) { 2991 content::GpuProcessHost* render_process_host) {
2992 registry->AddInterface( 2992 registry->AddInterface(
2993 base::Bind(&metrics::CallStackProfileCollector::Create, 2993 base::Bind(&metrics::CallStackProfileCollector::Create,
2994 metrics::CallStackProfileParams::GPU_PROCESS)); 2994 metrics::CallStackProfileParams::GPU_PROCESS));
2995 } 2995 }
2996 2996
2997 void ChromeContentBrowserClient::RegisterInProcessServices( 2997 void ChromeContentBrowserClient::RegisterInProcessServices(
2998 StaticServiceMap* services) { 2998 StaticServiceMap* services) {
2999 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2999 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
3000 content::ServiceInfo info; 3000 content::ServiceInfo info;
3001 info.factory = base::Bind(&media::CreateMojoMediaApplication); 3001 info.factory = base::Bind(&media::CreateMediaService);
3002 services->insert(std::make_pair("service:media", app_info)); 3002 services->insert(std::make_pair("service:media", info));
3003 #endif 3003 #endif
3004 #if defined(OS_CHROMEOS) 3004 #if defined(OS_CHROMEOS)
3005 content::ServiceManagerConnection::GetForProcess()->AddConnectionFilter( 3005 content::ServiceManagerConnection::GetForProcess()->AddConnectionFilter(
3006 base::MakeUnique<chromeos::ChromeInterfaceFactory>()); 3006 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
3007 #endif // OS_CHROMEOS 3007 #endif // OS_CHROMEOS
3008 } 3008 }
3009 3009
3010 void ChromeContentBrowserClient::RegisterOutOfProcessServices( 3010 void ChromeContentBrowserClient::RegisterOutOfProcessServices(
3011 OutOfProcessServiceMap* services) { 3011 OutOfProcessServiceMap* services) {
3012 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 3012 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3249 kWebRtcDevSwitchNames, 3249 kWebRtcDevSwitchNames,
3250 arraysize(kWebRtcDevSwitchNames)); 3250 arraysize(kWebRtcDevSwitchNames));
3251 } 3251 }
3252 } 3252 }
3253 #endif // defined(ENABLE_WEBRTC) 3253 #endif // defined(ENABLE_WEBRTC)
3254 3254
3255 std::unique_ptr<content::MemoryCoordinatorDelegate> 3255 std::unique_ptr<content::MemoryCoordinatorDelegate>
3256 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { 3256 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() {
3257 return memory::ChromeMemoryCoordinatorDelegate::Create(); 3257 return memory::ChromeMemoryCoordinatorDelegate::Create();
3258 } 3258 }
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698