| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Callback for ChunkDemuxer::Seek() and callback chain for resetting | 140 // Callback for ChunkDemuxer::Seek() and callback chain for resetting |
| 141 // decrypted audio/video streams if present. | 141 // decrypted audio/video streams if present. |
| 142 // | 142 // |
| 143 // Runs on the media thread. | 143 // Runs on the media thread. |
| 144 void OnDemuxerSeekDone(media::PipelineStatus status); | 144 void OnDemuxerSeekDone(media::PipelineStatus status); |
| 145 void ResetAudioDecryptingDemuxerStream(); | 145 void ResetAudioDecryptingDemuxerStream(); |
| 146 void ResetVideoDecryptingDemuxerStream(); | 146 void ResetVideoDecryptingDemuxerStream(); |
| 147 void FinishResettingDecryptingDemuxerStreams(); | 147 void FinishResettingDecryptingDemuxerStreams(); |
| 148 | 148 |
| 149 // Callback for ChunkDemuxer::Stop() and helper for deleting |this| on the | 149 // Helper for deleting |this| on the main thread. |
| 150 // main thread. | |
| 151 void OnDemuxerStopDone(); | |
| 152 void DeleteSelf(); | 150 void DeleteSelf(); |
| 153 | 151 |
| 154 void OnDemuxerOpened(); | 152 void OnDemuxerOpened(); |
| 155 void OnNeedKey(const std::string& type, | 153 void OnNeedKey(const std::string& type, |
| 156 const std::vector<uint8>& init_data); | 154 const std::vector<uint8>& init_data); |
| 157 void NotifyDemuxerReady(); | 155 void NotifyDemuxerReady(); |
| 158 | 156 |
| 159 void StopDemuxer(); | 157 void StopDemuxer(); |
| 160 void InitializeDemuxer(); | 158 void InitializeDemuxer(); |
| 161 void SeekInternal(const base::TimeDelta& seek_time); | 159 void SeekInternal(const base::TimeDelta& seek_time); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; | 241 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; |
| 244 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; | 242 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; |
| 245 base::WeakPtr<MediaSourceDelegate> main_weak_this_; | 243 base::WeakPtr<MediaSourceDelegate> main_weak_this_; |
| 246 | 244 |
| 247 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 245 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
| 248 }; | 246 }; |
| 249 | 247 |
| 250 } // namespace content | 248 } // namespace content |
| 251 | 249 |
| 252 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 250 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| OLD | NEW |