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

Side by Side Diff: webkit/media/webmediaplayer_impl.h

Issue 10535101: Replace Pipeline::SetNetworkActivity() with BufferedDataSource -> WebMediaPlayerImpl callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/webmediaplayer_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains Pipeline which is the actual media player pipeline, it glues 6 // It contains Pipeline which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // Pipeline would creates multiple threads and access some public methods 8 // Pipeline would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // |main_loop_| is being destroyed and we can stop posting repaint task 219 // |main_loop_| is being destroyed and we can stop posting repaint task
220 // to it. 220 // to it.
221 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; 221 virtual void WillDestroyCurrentMessageLoop() OVERRIDE;
222 222
223 void Repaint(); 223 void Repaint();
224 224
225 void OnPipelineInitialize(media::PipelineStatus status); 225 void OnPipelineInitialize(media::PipelineStatus status);
226 void OnPipelineSeek(media::PipelineStatus status); 226 void OnPipelineSeek(media::PipelineStatus status);
227 void OnPipelineEnded(media::PipelineStatus status); 227 void OnPipelineEnded(media::PipelineStatus status);
228 void OnPipelineError(media::PipelineStatus error); 228 void OnPipelineError(media::PipelineStatus error);
229 void OnNetworkEvent(media::NetworkEvent type);
230 void OnDemuxerOpened(); 229 void OnDemuxerOpened();
231 void OnKeyNeeded(scoped_array<uint8> init_data, int init_data_size); 230 void OnKeyNeeded(scoped_array<uint8> init_data, int init_data_size);
232 void SetOpaque(bool); 231 void SetOpaque(bool);
233 232
234 private: 233 private:
235 // Called after asynchronous initialization of a data source completed. 234 // Called after asynchronous initialization of a data source completed.
236 void DataSourceInitialized(const GURL& gurl, media::PipelineStatus status); 235 void DataSourceInitialized(const GURL& gurl, media::PipelineStatus status);
237 236
237 // Called when the data source is downloading or paused.
238 void NotifyDownloading(bool is_downloading);
239
238 // Finishes starting the pipeline due to a call to load(). 240 // Finishes starting the pipeline due to a call to load().
239 void StartPipeline(); 241 void StartPipeline();
240 242
241 // Helpers that set the network/ready state and notifies the client if 243 // Helpers that set the network/ready state and notifies the client if
242 // they've changed. 244 // they've changed.
243 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); 245 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state);
244 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); 246 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state);
245 247
246 // Destroy resources held. 248 // Destroy resources held.
247 void Destroy(); 249 void Destroy();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 WebKit::WebAudioSourceProvider* audio_source_provider_; 324 WebKit::WebAudioSourceProvider* audio_source_provider_;
323 325
324 bool is_local_source_; 326 bool is_local_source_;
325 327
326 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 328 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
327 }; 329 };
328 330
329 } // namespace webkit_media 331 } // namespace webkit_media
330 332
331 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 333 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698