| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl 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 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // |main_loop_| is being destroyed and we can stop posting repaint task | 184 // |main_loop_| is being destroyed and we can stop posting repaint task |
| 185 // to it. | 185 // to it. |
| 186 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; | 186 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; |
| 187 | 187 |
| 188 void Repaint(); | 188 void Repaint(); |
| 189 | 189 |
| 190 void OnPipelineInitialize(media::PipelineStatus status); | 190 void OnPipelineInitialize(media::PipelineStatus status); |
| 191 void OnPipelineSeek(media::PipelineStatus status); | 191 void OnPipelineSeek(media::PipelineStatus status); |
| 192 void OnPipelineEnded(media::PipelineStatus status); | 192 void OnPipelineEnded(media::PipelineStatus status); |
| 193 void OnPipelineError(media::PipelineStatus error); | 193 void OnPipelineError(media::PipelineStatus error); |
| 194 void OnNetworkEvent(bool is_downloading_data); | 194 void OnNetworkEvent(media::NetworkEvent type); |
| 195 void OnDemuxerOpened(); | 195 void OnDemuxerOpened(); |
| 196 | 196 |
| 197 private: | 197 private: |
| 198 // Helpers that set the network/ready state and notifies the client if | 198 // Helpers that set the network/ready state and notifies the client if |
| 199 // they've changed. | 199 // they've changed. |
| 200 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); | 200 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); |
| 201 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); | 201 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); |
| 202 | 202 |
| 203 // Destroy resources held. | 203 // Destroy resources held. |
| 204 void Destroy(); | 204 void Destroy(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 bool is_accelerated_compositing_active_; | 267 bool is_accelerated_compositing_active_; |
| 268 | 268 |
| 269 bool incremented_externally_allocated_memory_; | 269 bool incremented_externally_allocated_memory_; |
| 270 | 270 |
| 271 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 271 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 } // namespace webkit_media | 274 } // namespace webkit_media |
| 275 | 275 |
| 276 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 276 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |