| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Callback for ChunkDemuxer::Seek() and callback chain for resetting | 148 // Callback for ChunkDemuxer::Seek() and callback chain for resetting |
| 149 // decrypted audio/video streams if present. | 149 // decrypted audio/video streams if present. |
| 150 // | 150 // |
| 151 // Runs on the media thread. | 151 // Runs on the media thread. |
| 152 void OnDemuxerSeekDone(media::PipelineStatus status); | 152 void OnDemuxerSeekDone(media::PipelineStatus status); |
| 153 void ResetAudioDecryptingDemuxerStream(); | 153 void ResetAudioDecryptingDemuxerStream(); |
| 154 void ResetVideoDecryptingDemuxerStream(); | 154 void ResetVideoDecryptingDemuxerStream(); |
| 155 void FinishResettingDecryptingDemuxerStreams(); | 155 void FinishResettingDecryptingDemuxerStreams(); |
| 156 | 156 |
| 157 // Callback for ChunkDemuxer::Stop() and helper for deleting |this| on the |
| 158 // main thread. |
| 157 void OnDemuxerStopDone(); | 159 void OnDemuxerStopDone(); |
| 160 void DeleteSelf(); |
| 161 |
| 158 void OnDemuxerOpened(); | 162 void OnDemuxerOpened(); |
| 159 void OnNeedKey(const std::string& type, | 163 void OnNeedKey(const std::string& type, |
| 160 const std::vector<uint8>& init_data); | 164 const std::vector<uint8>& init_data); |
| 161 void NotifyDemuxerReady(); | 165 void NotifyDemuxerReady(); |
| 162 bool CanNotifyDemuxerReady(); | 166 bool CanNotifyDemuxerReady(); |
| 163 | 167 |
| 164 void StopDemuxer(); | 168 void StopDemuxer(); |
| 165 void InitializeDemuxer(); | 169 void InitializeDemuxer(); |
| 166 void SeekInternal(const base::TimeDelta& seek_time); | 170 void SeekInternal(const base::TimeDelta& seek_time); |
| 167 // Reads an access unit from the demuxer stream |stream| and stores it in | 171 // Reads an access unit from the demuxer stream |stream| and stores it in |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 #endif // defined(GOOGLE_TV) | 257 #endif // defined(GOOGLE_TV) |
| 254 | 258 |
| 255 size_t access_unit_size_; | 259 size_t access_unit_size_; |
| 256 | 260 |
| 257 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 261 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
| 258 }; | 262 }; |
| 259 | 263 |
| 260 } // namespace content | 264 } // namespace content |
| 261 | 265 |
| 262 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 266 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| OLD | NEW |