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

Side by Side Diff: chromecast/browser/cast_content_browser_client_simple.cc

Issue 1168643004: Allow CastContentBrowserClient to customise media pipeline device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment updates + Android exclusion Created 5 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromecast/browser/cast_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include "chromecast/media/cma/backend/media_pipeline_device.h"
7 #include "content/public/browser/browser_message_filter.h" 8 #include "content/public/browser/browser_message_filter.h"
8 #include "media/audio/audio_manager_factory.h" 9 #include "media/audio/audio_manager_factory.h"
9 10
10 namespace chromecast { 11 namespace chromecast {
11 namespace shell { 12 namespace shell {
12 13
13 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches( 14 void CastContentBrowserClient::PlatformAppendExtraCommandLineSwitches(
14 base::CommandLine* command_line) { 15 base::CommandLine* command_line) {
15 } 16 }
16 17
17 std::vector<scoped_refptr<content::BrowserMessageFilter>> 18 std::vector<scoped_refptr<content::BrowserMessageFilter>>
18 CastContentBrowserClient::PlatformGetBrowserMessageFilters() { 19 CastContentBrowserClient::PlatformGetBrowserMessageFilters() {
19 return std::vector<scoped_refptr<content::BrowserMessageFilter>>(); 20 return std::vector<scoped_refptr<content::BrowserMessageFilter>>();
20 } 21 }
21 22
22 scoped_ptr<::media::AudioManagerFactory> 23 scoped_ptr<::media::AudioManagerFactory>
23 CastContentBrowserClient::PlatformCreateAudioManagerFactory() { 24 CastContentBrowserClient::PlatformCreateAudioManagerFactory() {
24 // Return nullptr. The factory will not be set, and the statically linked 25 // Return nullptr. The factory will not be set, and the statically linked
25 // implementation of AudioManager will be used. 26 // implementation of AudioManager will be used.
26 return scoped_ptr<::media::AudioManagerFactory>(); 27 return scoped_ptr<::media::AudioManagerFactory>();
27 } 28 }
28 29
30 #if !defined(OS_ANDROID)
31 scoped_ptr<media::MediaPipelineDevice>
32 CastContentBrowserClient::PlatformCreateMediaPipelineDevice(
33 const media::MediaPipelineDeviceParams& params) {
34 return media::CreateMediaPipelineDevice(params);
35 }
36 #endif
37
29 } // namespace shell 38 } // namespace shell
30 } // namespace chromecast 39 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | chromecast/browser/media/cma_message_filter_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698