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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 #if defined(GOOGLE_TV) | 229 #if defined(GOOGLE_TV) |
230 bool InjectMediaStream(MediaStreamClient* media_stream_client, | 230 bool InjectMediaStream(MediaStreamClient* media_stream_client, |
231 media::Demuxer* demuxer, | 231 media::Demuxer* demuxer, |
232 const base::Closure& destroy_demuxer_cb); | 232 const base::Closure& destroy_demuxer_cb); |
233 #endif | 233 #endif |
234 | 234 |
235 // Can be called on any thread. | 235 // Can be called on any thread. |
236 static void OnReleaseRemotePlaybackTexture( | 236 static void OnReleaseRemotePlaybackTexture( |
237 const scoped_refptr<base::MessageLoopProxy>& main_loop, | 237 const scoped_refptr<base::MessageLoopProxy>& main_loop, |
238 const base::WeakPtr<WebMediaPlayerAndroid>& player, | 238 const base::WeakPtr<WebMediaPlayerAndroid>& player, |
239 uint32 sync_point); | 239 scoped_ptr<gpu::MailboxHolder> mailbox_holder); |
240 | 240 |
241 protected: | 241 protected: |
242 // Helper method to update the playing state. | 242 // Helper method to update the playing state. |
243 void UpdatePlayingState(bool is_playing_); | 243 void UpdatePlayingState(bool is_playing_); |
244 | 244 |
245 // Helper methods for posting task for setting states and update WebKit. | 245 // Helper methods for posting task for setting states and update WebKit. |
246 void UpdateNetworkState(blink::WebMediaPlayer::NetworkState state); | 246 void UpdateNetworkState(blink::WebMediaPlayer::NetworkState state); |
247 void UpdateReadyState(blink::WebMediaPlayer::ReadyState state); | 247 void UpdateReadyState(blink::WebMediaPlayer::ReadyState state); |
248 void TryCreateStreamTextureProxyIfNeeded(); | 248 void TryCreateStreamTextureProxyIfNeeded(); |
249 void DoCreateStreamTexture(); | 249 void DoCreateStreamTexture(); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 scoped_ptr<ProxyDecryptor> decryptor_; | 447 scoped_ptr<ProxyDecryptor> decryptor_; |
448 | 448 |
449 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 449 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
450 | 450 |
451 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 451 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
452 }; | 452 }; |
453 | 453 |
454 } // namespace content | 454 } // namespace content |
455 | 455 |
456 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 456 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |