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

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

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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // TODO(chcunningham): Refactor this to a proper change "observer" API that is 263 // TODO(chcunningham): Refactor this to a proper change "observer" API that is
264 // less fragile (don't assume AddSupportedKeySystems has just one caller). 264 // less fragile (don't assume AddSupportedKeySystems has just one caller).
265 virtual bool IsKeySystemsUpdateNeeded(); 265 virtual bool IsKeySystemsUpdateNeeded();
266 266
267 // Allows embedder to describe customized audio capabilities. 267 // Allows embedder to describe customized audio capabilities.
268 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config); 268 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config);
269 269
270 // Allows embedder to describe customized video capabilities. 270 // Allows embedder to describe customized video capabilities.
271 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config); 271 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config);
272 272
273 // Return true if the bitstream format |codec| is supported by the audio sink.
274 virtual bool IsSupportedBitstreamAudio(media::AudioCodec codec);
DaleCurtis 2017/06/02 22:34:48 Seems it should be IsSupportedBistreamAudioCodec?
275
273 // Returns true if we should report a detailed message (including a stack 276 // Returns true if we should report a detailed message (including a stack
274 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- 277 // trace) for console [logs|errors|exceptions]. |source| is the WebKit-
275 // reported source for the error; this can point to a page or a script, 278 // reported source for the error; this can point to a page or a script,
276 // and can be external or internal. 279 // and can be external or internal.
277 virtual bool ShouldReportDetailedMessageForSource( 280 virtual bool ShouldReportDetailedMessageForSource(
278 const base::string16& source) const; 281 const base::string16& source) const;
279 282
280 // Returns true if we should gather stats during resource loads as if the 283 // Returns true if we should gather stats during resource loads as if the
281 // cross-site document blocking policy were enabled. Does not actually block 284 // cross-site document blocking policy were enabled. Does not actually block
282 // any pages. 285 // any pages.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 virtual std::unique_ptr<base::TaskScheduler::InitParams> 363 virtual std::unique_ptr<base::TaskScheduler::InitParams>
361 GetTaskSchedulerInitParams(); 364 GetTaskSchedulerInitParams();
362 365
363 // Returns true if the media pipeline can be suspended, or false otherwise. 366 // Returns true if the media pipeline can be suspended, or false otherwise.
364 virtual bool AllowMediaSuspend(); 367 virtual bool AllowMediaSuspend();
365 }; 368 };
366 369
367 } // namespace content 370 } // namespace content
368 371
369 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 372 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/renderer/cast_content_renderer_client.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698