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

Unified Diff: media/base/audio_renderer.h

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and fix compile errors Created 4 years, 10 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/audio_decoder.h ('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 79438c785bfb0e6634f9b892cdd4029918b8f328..11e112f1a1e97d8889b4e0366be1ccc8302a2b83 100644
--- a/media/base/audio_renderer.h
+++ b/media/base/audio_renderer.h
@@ -9,12 +9,12 @@
#include "base/macros.h"
#include "base/time/time.h"
#include "media/base/buffering_state.h"
-#include "media/base/cdm_context.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
namespace media {
+class CdmContext;
class DemuxerStream;
class TimeSource;
@@ -29,8 +29,8 @@ class MEDIA_EXPORT AudioRenderer {
// completion. If initialization fails, only |init_cb| (not |error_cb|) will
// be called.
//
- // |set_cdm_ready_cb| is fired when a CDM is needed, i.e. when the |stream| is
- // encrypted.
+ // |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.
//
@@ -46,7 +46,7 @@ class MEDIA_EXPORT AudioRenderer {
virtual void Initialize(
DemuxerStream* stream,
const PipelineStatusCB& init_cb,
- const SetCdmReadyCB& set_cdm_ready_cb,
+ CdmContext* cdm_context,
const StatisticsCB& statistics_cb,
const BufferingStateCB& buffering_state_cb,
const base::Closure& ended_cb,
« no previous file with comments | « media/base/audio_decoder.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698