OLD | NEW |
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_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 // Media Stream related fields. | 392 // Media Stream related fields. |
393 media::Demuxer* demuxer_; | 393 media::Demuxer* demuxer_; |
394 base::Closure destroy_demuxer_cb_; | 394 base::Closure destroy_demuxer_cb_; |
395 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; | 395 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; |
396 MediaStreamClient* media_stream_client_; | 396 MediaStreamClient* media_stream_client_; |
397 #endif | 397 #endif |
398 | 398 |
399 scoped_ptr<MediaSourceDelegate, | 399 scoped_ptr<MediaSourceDelegate, |
400 MediaSourceDelegate::Destroyer> media_source_delegate_; | 400 MediaSourceDelegate::Destroyer> media_source_delegate_; |
401 | 401 |
| 402 // Internal pending playback state. |
| 403 // Store a playback request that cannot be started immediately. |
| 404 bool pending_playback_; |
| 405 |
402 MediaPlayerHostMsg_Initialize_Type player_type_; | 406 MediaPlayerHostMsg_Initialize_Type player_type_; |
403 | 407 |
404 // Proxy object that delegates method calls on Render Thread. | 408 // Proxy object that delegates method calls on Render Thread. |
405 // This object is created on the Render Thread and is only called in the | 409 // This object is created on the Render Thread and is only called in the |
406 // destructor. | 410 // destructor. |
407 WebMediaPlayerProxyAndroid* proxy_; | 411 WebMediaPlayerProxyAndroid* proxy_; |
408 | 412 |
409 // The current playing time. Because the media player is in the browser | 413 // The current playing time. Because the media player is in the browser |
410 // process, it will regularly update the |current_time_| by calling | 414 // process, it will regularly update the |current_time_| by calling |
411 // OnTimeUpdate(). | 415 // OnTimeUpdate(). |
(...skipping 13 matching lines...) Expand all Loading... |
425 | 429 |
426 // The decryptor that manages decryption keys and decrypts encrypted frames. | 430 // The decryptor that manages decryption keys and decrypts encrypted frames. |
427 scoped_ptr<ProxyDecryptor> decryptor_; | 431 scoped_ptr<ProxyDecryptor> decryptor_; |
428 | 432 |
429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 433 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
430 }; | 434 }; |
431 | 435 |
432 } // namespace content | 436 } // namespace content |
433 | 437 |
434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 438 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |