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

Side by Side Diff: content/public/renderer/content_renderer_client.cc

Issue 2914273004: Add IsSupportedBitstreamAudioCodec() function in MediaClient. (Closed)
Patch Set: Created 3 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 (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/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 #include "content/public/renderer/media_stream_renderer_factory.h" 7 #include "content/public/renderer/media_stream_renderer_factory.h"
8 #include "media/base/renderer_factory.h" 8 #include "media/base/renderer_factory.h"
9 #include "third_party/WebKit/public/platform/WebAudioDevice.h" 9 #include "third_party/WebKit/public/platform/WebAudioDevice.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Defer to media's default support. 185 // Defer to media's default support.
186 return ::media::IsSupportedAudioConfig(config); 186 return ::media::IsSupportedAudioConfig(config);
187 } 187 }
188 188
189 bool ContentRendererClient::IsSupportedVideoConfig( 189 bool ContentRendererClient::IsSupportedVideoConfig(
190 const media::VideoConfig& config) { 190 const media::VideoConfig& config) {
191 // Defer to media's default support. 191 // Defer to media's default support.
192 return ::media::IsSupportedVideoConfig(config); 192 return ::media::IsSupportedVideoConfig(config);
193 } 193 }
194 194
195 bool ContentRendererClient::IsSupportedBitstreamAudio(media::AudioCodec codec) {
196 return false;
197 }
198
195 std::unique_ptr<MediaStreamRendererFactory> 199 std::unique_ptr<MediaStreamRendererFactory>
196 ContentRendererClient::CreateMediaStreamRendererFactory() { 200 ContentRendererClient::CreateMediaStreamRendererFactory() {
197 return nullptr; 201 return nullptr;
198 } 202 }
199 203
200 bool ContentRendererClient::ShouldReportDetailedMessageForSource( 204 bool ContentRendererClient::ShouldReportDetailedMessageForSource(
201 const base::string16& source) const { 205 const base::string16& source) const {
202 return false; 206 return false;
203 } 207 }
204 208
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::unique_ptr<base::TaskScheduler::InitParams> 247 std::unique_ptr<base::TaskScheduler::InitParams>
244 ContentRendererClient::GetTaskSchedulerInitParams() { 248 ContentRendererClient::GetTaskSchedulerInitParams() {
245 return nullptr; 249 return nullptr;
246 } 250 }
247 251
248 bool ContentRendererClient::AllowMediaSuspend() { 252 bool ContentRendererClient::AllowMediaSuspend() {
249 return true; 253 return true;
250 } 254 }
251 255
252 } // namespace content 256 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698