OLD | NEW |
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void OnPipelineError(media::PipelineStatus error); | 198 void OnPipelineError(media::PipelineStatus error); |
199 void OnNetworkEvent(media::NetworkEvent type); | 199 void OnNetworkEvent(media::NetworkEvent type); |
200 void OnDemuxerOpened(); | 200 void OnDemuxerOpened(); |
201 void SetOpaque(bool); | 201 void SetOpaque(bool); |
202 | 202 |
203 private: | 203 private: |
204 // Called after asynchronous initialization of a data source completed. | 204 // Called after asynchronous initialization of a data source completed. |
205 void DataSourceInitialized(const GURL& gurl, media::PipelineStatus status); | 205 void DataSourceInitialized(const GURL& gurl, media::PipelineStatus status); |
206 | 206 |
207 // Finishes starting the pipeline due to a call to load(). | 207 // Finishes starting the pipeline due to a call to load(). |
208 void StartPipeline(const GURL& gurl); | 208 void StartPipeline(); |
209 | 209 |
210 // Helpers that set the network/ready state and notifies the client if | 210 // Helpers that set the network/ready state and notifies the client if |
211 // they've changed. | 211 // they've changed. |
212 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); | 212 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); |
213 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); | 213 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); |
214 | 214 |
215 // Destroy resources held. | 215 // Destroy resources held. |
216 void Destroy(); | 216 void Destroy(); |
217 | 217 |
218 // Getter method to |client_|. | 218 // Getter method to |client_|. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 bool incremented_externally_allocated_memory_; | 290 bool incremented_externally_allocated_memory_; |
291 | 291 |
292 WebKit::WebAudioSourceProvider* audio_source_provider_; | 292 WebKit::WebAudioSourceProvider* audio_source_provider_; |
293 | 293 |
294 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 294 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
295 }; | 295 }; |
296 | 296 |
297 } // namespace webkit_media | 297 } // namespace webkit_media |
298 | 298 |
299 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 299 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |