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

Side by Side Diff: media/renderers/audio_renderer_impl.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 unified diff | Download patch
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Audio rendering unit utilizing an AudioRendererSink to output data. 5 // Audio rendering unit utilizing an AudioRendererSink to output data.
6 // 6 //
7 // This class lives inside three threads during it's lifetime, namely: 7 // This class lives inside three threads during it's lifetime, namely:
8 // 1. Render thread 8 // 1. Render thread
9 // Where the object is created. 9 // Where the object is created.
10 // 2. Media thread (provided via constructor) 10 // 2. Media thread (provided via constructor)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void SetPlaybackRate(double rate) override; 74 void SetPlaybackRate(double rate) override;
75 void SetMediaTime(base::TimeDelta time) override; 75 void SetMediaTime(base::TimeDelta time) override;
76 base::TimeDelta CurrentMediaTime() override; 76 base::TimeDelta CurrentMediaTime() override;
77 bool GetWallClockTimes( 77 bool GetWallClockTimes(
78 const std::vector<base::TimeDelta>& media_timestamps, 78 const std::vector<base::TimeDelta>& media_timestamps,
79 std::vector<base::TimeTicks>* wall_clock_times) override; 79 std::vector<base::TimeTicks>* wall_clock_times) override;
80 80
81 // AudioRenderer implementation. 81 // AudioRenderer implementation.
82 void Initialize(DemuxerStream* stream, 82 void Initialize(DemuxerStream* stream,
83 const PipelineStatusCB& init_cb, 83 const PipelineStatusCB& init_cb,
84 const SetCdmReadyCB& set_cdm_ready_cb, 84 CdmContext* cdm_context,
85 const StatisticsCB& statistics_cb, 85 const StatisticsCB& statistics_cb,
86 const BufferingStateCB& buffering_state_cb, 86 const BufferingStateCB& buffering_state_cb,
87 const base::Closure& ended_cb, 87 const base::Closure& ended_cb,
88 const PipelineStatusCB& error_cb, 88 const PipelineStatusCB& error_cb,
89 const base::Closure& waiting_for_decryption_key_cb) override; 89 const base::Closure& waiting_for_decryption_key_cb) override;
90 TimeSource* GetTimeSource() override; 90 TimeSource* GetTimeSource() override;
91 void Flush(const base::Closure& callback) override; 91 void Flush(const base::Closure& callback) override;
92 void StartPlaying() override; 92 void StartPlaying() override;
93 void SetVolume(float volume) override; 93 void SetVolume(float volume) override;
94 94
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // NOTE: Weak pointers must be invalidated before all other member variables. 285 // NOTE: Weak pointers must be invalidated before all other member variables.
286 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; 286 base::WeakPtrFactory<AudioRendererImpl> weak_factory_;
287 287
288 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 288 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
289 }; 289 };
290 290
291 } // namespace media 291 } // namespace media
292 292
293 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_ 293 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698