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

Side by Side Diff: media/renderers/audio_renderer_impl.h

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android changes Created 5 years, 9 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 // 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::TimeDelta CurrentMediaTime() override; 73 base::TimeDelta CurrentMediaTime() override;
74 base::TimeDelta CurrentMediaTimeForSyncingVideo() override; 74 base::TimeDelta CurrentMediaTimeForSyncingVideo() override;
75 75
76 // AudioRenderer implementation. 76 // AudioRenderer implementation.
77 void Initialize(DemuxerStream* stream, 77 void Initialize(DemuxerStream* stream,
78 const PipelineStatusCB& init_cb, 78 const PipelineStatusCB& init_cb,
79 const SetDecryptorReadyCB& set_decryptor_ready_cb, 79 const SetDecryptorReadyCB& set_decryptor_ready_cb,
80 const StatisticsCB& statistics_cb, 80 const StatisticsCB& statistics_cb,
81 const BufferingStateCB& buffering_state_cb, 81 const BufferingStateCB& buffering_state_cb,
82 const base::Closure& ended_cb, 82 const base::Closure& ended_cb,
83 const PipelineStatusCB& error_cb) override; 83 const PipelineStatusCB& error_cb,
84 const base::Closure& waiting_for_decryption_key_cb) override;
84 TimeSource* GetTimeSource() override; 85 TimeSource* GetTimeSource() override;
85 void Flush(const base::Closure& callback) override; 86 void Flush(const base::Closure& callback) override;
86 void StartPlaying() override; 87 void StartPlaying() override;
87 void SetVolume(float volume) override; 88 void SetVolume(float volume) override;
88 89
89 private: 90 private:
90 friend class AudioRendererImplTest; 91 friend class AudioRendererImplTest;
91 92
92 // Important detail: being in kPlaying doesn't imply that audio is being 93 // Important detail: being in kPlaying doesn't imply that audio is being
93 // rendered. Rather, it means that the renderer is ready to go. The actual 94 // rendered. Rather, it means that the renderer is ready to go. The actual
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 266
266 // NOTE: Weak pointers must be invalidated before all other member variables. 267 // NOTE: Weak pointers must be invalidated before all other member variables.
267 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; 268 base::WeakPtrFactory<AudioRendererImpl> weak_factory_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 270 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
270 }; 271 };
271 272
272 } // namespace media 273 } // namespace media
273 274
274 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_ 275 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698