| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void Stop(const base::Closure& stop_cb); | 99 void Stop(const base::Closure& stop_cb); |
| 100 | 100 |
| 101 // Called on the main thread to check whether the video stream is encrypted. | 101 // Called on the main thread to check whether the video stream is encrypted. |
| 102 bool IsVideoEncrypted(); | 102 bool IsVideoEncrypted(); |
| 103 | 103 |
| 104 // Gets the ChunkDemuxer timeline offset. | 104 // Gets the ChunkDemuxer timeline offset. |
| 105 base::Time GetTimelineOffset() const; | 105 base::Time GetTimelineOffset() const; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 // Methods inherited from DemuxerHost. | 108 // Methods inherited from DemuxerHost. |
| 109 void AddBufferedTimeRange(base::TimeDelta start, | 109 void OnBufferedTimeRangesChanged( |
| 110 base::TimeDelta end) override; | 110 const Ranges<base::TimeDelta>& ranges) override; |
| 111 void SetDuration(base::TimeDelta duration) override; | 111 void SetDuration(base::TimeDelta duration) override; |
| 112 void OnDemuxerError(media::PipelineStatus status) override; | 112 void OnDemuxerError(media::PipelineStatus status) override; |
| 113 void AddTextStream(media::DemuxerStream* text_stream, | 113 void AddTextStream(media::DemuxerStream* text_stream, |
| 114 const media::TextTrackConfig& config) override; | 114 const media::TextTrackConfig& config) override; |
| 115 void RemoveTextStream(media::DemuxerStream* text_stream) override; | 115 void RemoveTextStream(media::DemuxerStream* text_stream) override; |
| 116 | 116 |
| 117 // Notifies |demuxer_client_| and fires |duration_changed_cb_|. | 117 // Notifies |demuxer_client_| and fires |duration_changed_cb_|. |
| 118 void OnDurationChanged(const base::TimeDelta& duration); | 118 void OnDurationChanged(const base::TimeDelta& duration); |
| 119 | 119 |
| 120 // Callback for ChunkDemuxer initialization. | 120 // Callback for ChunkDemuxer initialization. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 base::WeakPtr<MediaSourceDelegate> main_weak_this_; | 228 base::WeakPtr<MediaSourceDelegate> main_weak_this_; |
| 229 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; | 229 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; |
| 230 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; | 230 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 232 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace content | 235 } // namespace content |
| 236 | 236 |
| 237 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 237 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| OLD | NEW |