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

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

Issue 2914273004: Add IsSupportedBitstreamAudioCodec() function in MediaClient. (Closed)
Patch Set: Rename 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // TODO(chcunningham): Refactor this to a proper change "observer" API that is 268 // TODO(chcunningham): Refactor this to a proper change "observer" API that is
269 // less fragile (don't assume AddSupportedKeySystems has just one caller). 269 // less fragile (don't assume AddSupportedKeySystems has just one caller).
270 virtual bool IsKeySystemsUpdateNeeded(); 270 virtual bool IsKeySystemsUpdateNeeded();
271 271
272 // Allows embedder to describe customized audio capabilities. 272 // Allows embedder to describe customized audio capabilities.
273 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config); 273 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config);
274 274
275 // Allows embedder to describe customized video capabilities. 275 // Allows embedder to describe customized video capabilities.
276 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config); 276 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config);
277 277
278 // Return true if the bitstream format |codec| is supported by the audio sink.
279 virtual bool IsSupportedBistreamAudioCodec(media::AudioCodec codec);
halliwell 2017/06/05 19:06:33 Bistream => Bitstream ?
280
278 // Returns true if we should report a detailed message (including a stack 281 // Returns true if we should report a detailed message (including a stack
279 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- 282 // trace) for console [logs|errors|exceptions]. |source| is the WebKit-
280 // reported source for the error; this can point to a page or a script, 283 // reported source for the error; this can point to a page or a script,
281 // and can be external or internal. 284 // and can be external or internal.
282 virtual bool ShouldReportDetailedMessageForSource( 285 virtual bool ShouldReportDetailedMessageForSource(
283 const base::string16& source) const; 286 const base::string16& source) const;
284 287
285 // Returns true if we should gather stats during resource loads as if the 288 // Returns true if we should gather stats during resource loads as if the
286 // cross-site document blocking policy were enabled. Does not actually block 289 // cross-site document blocking policy were enabled. Does not actually block
287 // any pages. 290 // any pages.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 virtual std::unique_ptr<base::TaskScheduler::InitParams> 368 virtual std::unique_ptr<base::TaskScheduler::InitParams>
366 GetTaskSchedulerInitParams(); 369 GetTaskSchedulerInitParams();
367 370
368 // Returns true if the media pipeline can be suspended, or false otherwise. 371 // Returns true if the media pipeline can be suspended, or false otherwise.
369 virtual bool AllowMediaSuspend(); 372 virtual bool AllowMediaSuspend();
370 }; 373 };
371 374
372 } // namespace content 375 } // namespace content
373 376
374 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 377 #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