| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Callback for ChunkDemuxer::Seek() and callback chain for resetting | 129 // Callback for ChunkDemuxer::Seek() and callback chain for resetting |
| 130 // decrypted audio/video streams if present. | 130 // decrypted audio/video streams if present. |
| 131 // | 131 // |
| 132 // Runs on the media thread. | 132 // Runs on the media thread. |
| 133 void OnDemuxerSeekDone(media::PipelineStatus status); | 133 void OnDemuxerSeekDone(media::PipelineStatus status); |
| 134 void ResetAudioDecryptingDemuxerStream(); | 134 void ResetAudioDecryptingDemuxerStream(); |
| 135 void ResetVideoDecryptingDemuxerStream(); | 135 void ResetVideoDecryptingDemuxerStream(); |
| 136 void FinishResettingDecryptingDemuxerStreams(); | 136 void FinishResettingDecryptingDemuxerStreams(); |
| 137 | 137 |
| 138 void OnDemuxerOpened(); | 138 void OnDemuxerOpened(); |
| 139 void OnNeedKey(const std::string& type, | 139 void OnNeedKey(const std::string& init_data_type, |
| 140 const std::vector<uint8>& init_data); | 140 const std::vector<uint8>& init_data); |
| 141 void NotifyDemuxerReady(); | 141 void NotifyDemuxerReady(); |
| 142 | 142 |
| 143 // Stops and clears objects on the media thread. | 143 // Stops and clears objects on the media thread. |
| 144 void StopDemuxer(const base::Closure& stop_cb); | 144 void StopDemuxer(const base::Closure& stop_cb); |
| 145 | 145 |
| 146 void InitializeDemuxer(); | 146 void InitializeDemuxer(); |
| 147 void SeekInternal(const base::TimeDelta& seek_time); | 147 void SeekInternal(const base::TimeDelta& seek_time); |
| 148 // Reads an access unit from the demuxer stream |stream| and stores it in | 148 // Reads an access unit from the demuxer stream |stream| and stores it in |
| 149 // the |index|th access unit in |params|. | 149 // the |index|th access unit in |params|. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 base::WeakPtr<MediaSourceDelegate> main_weak_this_; | 231 base::WeakPtr<MediaSourceDelegate> main_weak_this_; |
| 232 | 232 |
| 233 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 233 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace content | 236 } // namespace content |
| 237 | 237 |
| 238 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 238 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| OLD | NEW |