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

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

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits. Created 6 years, 8 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void Destroy(); 104 void Destroy();
105 105
106 // Called on the main thread to check whether the video stream is encrypted. 106 // Called on the main thread to check whether the video stream is encrypted.
107 bool IsVideoEncrypted(); 107 bool IsVideoEncrypted();
108 108
109 private: 109 private:
110 // This is private to enforce use of the Destroyer. 110 // This is private to enforce use of the Destroyer.
111 virtual ~MediaSourceDelegate(); 111 virtual ~MediaSourceDelegate();
112 112
113 // Methods inherited from DemuxerHost. 113 // Methods inherited from DemuxerHost.
114 virtual void SetTotalBytes(int64 total_bytes) OVERRIDE;
115 virtual void AddBufferedByteRange(int64 start, int64 end) OVERRIDE;
116 virtual void AddBufferedTimeRange(base::TimeDelta start, 114 virtual void AddBufferedTimeRange(base::TimeDelta start,
117 base::TimeDelta end) OVERRIDE; 115 base::TimeDelta end) OVERRIDE;
118 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; 116 virtual void SetDuration(base::TimeDelta duration) OVERRIDE;
119 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; 117 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE;
120 virtual void AddTextStream(media::DemuxerStream* text_stream, 118 virtual void AddTextStream(media::DemuxerStream* text_stream,
121 const media::TextTrackConfig& config) OVERRIDE; 119 const media::TextTrackConfig& config) OVERRIDE;
122 virtual void RemoveTextStream(media::DemuxerStream* text_stream) OVERRIDE; 120 virtual void RemoveTextStream(media::DemuxerStream* text_stream) OVERRIDE;
123 121
124 // Notifies |demuxer_client_| and fires |duration_changed_cb_|. 122 // Notifies |demuxer_client_| and fires |duration_changed_cb_|.
125 void OnDurationChanged(const base::TimeDelta& duration); 123 void OnDurationChanged(const base::TimeDelta& duration);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; 237 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_;
240 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; 238 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_;
241 base::WeakPtr<MediaSourceDelegate> main_weak_this_; 239 base::WeakPtr<MediaSourceDelegate> main_weak_this_;
242 240
243 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 241 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
244 }; 242 };
245 243
246 } // namespace content 244 } // namespace content
247 245
248 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 246 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698