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

Unified Diff: media/base/audio_renderer.h

Issue 1955843002: Move Renderer permanent callbacks into RendererClient interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer.h
diff --git a/media/base/audio_renderer.h b/media/base/audio_renderer.h
index 11e112f1a1e97d8889b4e0366be1ccc8302a2b83..48cf7b7266cb5dc779c4175bf3db783227b84967 100644
--- a/media/base/audio_renderer.h
+++ b/media/base/audio_renderer.h
@@ -16,6 +16,7 @@ namespace media {
class CdmContext;
class DemuxerStream;
+class RendererClient;
class TimeSource;
class MEDIA_EXPORT AudioRenderer {
@@ -26,32 +27,15 @@ class MEDIA_EXPORT AudioRenderer {
virtual ~AudioRenderer();
// Initialize an AudioRenderer with |stream|, executing |init_cb| upon
- // completion. If initialization fails, only |init_cb| (not |error_cb|) will
- // be called.
+ // completion. If initialization fails, only |init_cb|
+ // (not RendererClient::OnError) will be called.
//
// |cdm_context| can be used to handle encrypted streams. May be null if the
// stream is not encrypted.
- //
- // |statistics_cb| is executed periodically with audio rendering stats.
- //
- // |buffering_state_cb| is executed when audio rendering has either run out of
- // data or has enough data to continue playback.
- //
- // |ended_cb| is executed when audio rendering has reached the end of stream.
- //
- // |error_cb| is executed if an error was encountered after initialization.
- //
- // |waiting_for_decryption_key_cb| is called whenever the key needed to
- // decrypt the stream is not available.
- virtual void Initialize(
- DemuxerStream* stream,
- const PipelineStatusCB& init_cb,
- CdmContext* cdm_context,
- const StatisticsCB& statistics_cb,
- const BufferingStateCB& buffering_state_cb,
- const base::Closure& ended_cb,
- const PipelineStatusCB& error_cb,
- const base::Closure& waiting_for_decryption_key_cb) = 0;
+ virtual void Initialize(DemuxerStream* stream,
+ CdmContext* cdm_context,
+ RendererClient* client,
+ const PipelineStatusCB& init_cb) = 0;
// Returns the TimeSource associated with audio rendering.
virtual TimeSource* GetTimeSource() = 0;
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698