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

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

Issue 2199913002: Notify demux stream clients when a stream is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass DemuxerStream into the status callback Created 4 years, 4 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/mojo/services/mojo_demuxer_stream_adapter.cc ('k') | media/renderers/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_RENDERERS_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SetCdm(CdmContext* cdm_context, 55 void SetCdm(CdmContext* cdm_context,
56 const CdmAttachedCB& cdm_attached_cb) final; 56 const CdmAttachedCB& cdm_attached_cb) final;
57 void Flush(const base::Closure& flush_cb) final; 57 void Flush(const base::Closure& flush_cb) final;
58 void StartPlayingFrom(base::TimeDelta time) final; 58 void StartPlayingFrom(base::TimeDelta time) final;
59 void SetPlaybackRate(double playback_rate) final; 59 void SetPlaybackRate(double playback_rate) final;
60 void SetVolume(float volume) final; 60 void SetVolume(float volume) final;
61 base::TimeDelta GetMediaTime() final; 61 base::TimeDelta GetMediaTime() final;
62 bool HasAudio() final; 62 bool HasAudio() final;
63 bool HasVideo() final; 63 bool HasVideo() final;
64 64
65 void RestartStreamPlayback(DemuxerStream* stream, base::TimeDelta time); 65 void RestartStreamPlayback(DemuxerStream* stream,
66 bool enabled,
67 base::TimeDelta time);
66 68
67 // Helper functions for testing purposes. Must be called before Initialize(). 69 // Helper functions for testing purposes. Must be called before Initialize().
68 void DisableUnderflowForTesting(); 70 void DisableUnderflowForTesting();
69 void EnableClocklessVideoPlaybackForTesting(); 71 void EnableClocklessVideoPlaybackForTesting();
70 void set_time_source_for_testing(TimeSource* time_source) { 72 void set_time_source_for_testing(TimeSource* time_source) {
71 time_source_ = time_source; 73 time_source_ = time_source;
72 } 74 }
73 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) { 75 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) {
74 video_underflow_threshold_ = threshold; 76 video_underflow_threshold_ = threshold;
75 } 77 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 202
201 base::WeakPtr<RendererImpl> weak_this_; 203 base::WeakPtr<RendererImpl> weak_this_;
202 base::WeakPtrFactory<RendererImpl> weak_factory_; 204 base::WeakPtrFactory<RendererImpl> weak_factory_;
203 205
204 DISALLOW_COPY_AND_ASSIGN(RendererImpl); 206 DISALLOW_COPY_AND_ASSIGN(RendererImpl);
205 }; 207 };
206 208
207 } // namespace media 209 } // namespace media
208 210
209 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ 211 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_adapter.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698