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

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

Issue 416393003: Make Demuxer::Stop() synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698