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

Side by Side Diff: content/renderer/media/android/media_source_delegate.h

Issue 1526303004: Fix buffered range updates in media::Pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android buildfix Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void Stop(const base::Closure& stop_cb); 103 void Stop(const base::Closure& stop_cb);
104 104
105 // Called on the main thread to check whether the video stream is encrypted. 105 // Called on the main thread to check whether the video stream is encrypted.
106 bool IsVideoEncrypted(); 106 bool IsVideoEncrypted();
107 107
108 // Gets the ChunkDemuxer timeline offset. 108 // Gets the ChunkDemuxer timeline offset.
109 base::Time GetTimelineOffset() const; 109 base::Time GetTimelineOffset() const;
110 110
111 private: 111 private:
112 // Methods inherited from DemuxerHost. 112 // Methods inherited from DemuxerHost.
113 void AddBufferedTimeRange(base::TimeDelta start, 113 void OnBufferedTimeRangesChanged(
114 base::TimeDelta end) override; 114 const media::Ranges<base::TimeDelta>& ranges) override;
115 void SetDuration(base::TimeDelta duration) override; 115 void SetDuration(base::TimeDelta duration) override;
116 void OnDemuxerError(media::PipelineStatus status) override; 116 void OnDemuxerError(media::PipelineStatus status) override;
117 void AddTextStream(media::DemuxerStream* text_stream, 117 void AddTextStream(media::DemuxerStream* text_stream,
118 const media::TextTrackConfig& config) override; 118 const media::TextTrackConfig& config) override;
119 void RemoveTextStream(media::DemuxerStream* text_stream) override; 119 void RemoveTextStream(media::DemuxerStream* text_stream) override;
120 120
121 // Notifies |demuxer_client_| and fires |duration_changed_cb_|. 121 // Notifies |demuxer_client_| and fires |duration_changed_cb_|.
122 void OnDurationChanged(const base::TimeDelta& duration); 122 void OnDurationChanged(const base::TimeDelta& duration);
123 123
124 // Callback for ChunkDemuxer initialization. 124 // Callback for ChunkDemuxer initialization.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 base::WeakPtr<MediaSourceDelegate> main_weak_this_; 232 base::WeakPtr<MediaSourceDelegate> main_weak_this_;
233 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; 233 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_;
234 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; 234 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_;
235 235
236 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 236 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
237 }; 237 };
238 238
239 } // namespace content 239 } // namespace content
240 240
241 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 241 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/test/frame_segmenter_for_test.cc ('k') | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698