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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // they've changed. | 260 // they've changed. |
261 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); | 261 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); |
262 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); | 262 void SetReadyState(WebKit::WebMediaPlayer::ReadyState state); |
263 | 263 |
264 // Destroy resources held. | 264 // Destroy resources held. |
265 void Destroy(); | 265 void Destroy(); |
266 | 266 |
267 // Getter method to |client_|. | 267 // Getter method to |client_|. |
268 WebKit::WebMediaPlayerClient* GetClient(); | 268 WebKit::WebMediaPlayerClient* GetClient(); |
269 | 269 |
| 270 // Create a plugin instance based on the |plugin_type|. |
| 271 // TODO(xhwang): Change WebMediaPlayerClient::createHelperPlugin()'s |
| 272 // parameter order so this can be replaced by a base::Bind(). |
| 273 scoped_refptr<webkit::ppapi::PluginInstance> CreatePluginInstance( |
| 274 const std::string& plugin_type); |
| 275 |
270 // Lets V8 know that player uses extra resources not managed by V8. | 276 // Lets V8 know that player uses extra resources not managed by V8. |
271 void IncrementExternallyAllocatedMemory(); | 277 void IncrementExternallyAllocatedMemory(); |
272 | 278 |
273 WebKit::WebFrame* frame_; | 279 WebKit::WebFrame* frame_; |
274 | 280 |
275 // TODO(hclam): get rid of these members and read from the pipeline directly. | 281 // TODO(hclam): get rid of these members and read from the pipeline directly. |
276 WebKit::WebMediaPlayer::NetworkState network_state_; | 282 WebKit::WebMediaPlayer::NetworkState network_state_; |
277 WebKit::WebMediaPlayer::ReadyState ready_state_; | 283 WebKit::WebMediaPlayer::ReadyState ready_state_; |
278 | 284 |
279 // Keep a list of buffered time ranges. | 285 // Keep a list of buffered time ranges. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 350 |
345 // The decryptor that manages decryption keys and decrypts encrypted frames. | 351 // The decryptor that manages decryption keys and decrypts encrypted frames. |
346 ProxyDecryptor decryptor_; | 352 ProxyDecryptor decryptor_; |
347 | 353 |
348 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 354 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
349 }; | 355 }; |
350 | 356 |
351 } // namespace webkit_media | 357 } // namespace webkit_media |
352 | 358 |
353 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 359 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |