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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void SetNeedsEstablishPeer(bool needs_establish_peer); | 238 void SetNeedsEstablishPeer(bool needs_establish_peer); |
239 | 239 |
240 private: | 240 private: |
241 void InitializePlayer(const GURL& url, | 241 void InitializePlayer(const GURL& url, |
242 const GURL& first_party_for_cookies, | 242 const GURL& first_party_for_cookies, |
243 bool allowed_stored_credentials); | 243 bool allowed_stored_credentials); |
244 void Pause(bool is_media_related_action); | 244 void Pause(bool is_media_related_action); |
245 void DrawRemotePlaybackText(const std::string& remote_playback_message); | 245 void DrawRemotePlaybackText(const std::string& remote_playback_message); |
246 void ReallocateVideoFrame(); | 246 void ReallocateVideoFrame(); |
247 void SetCurrentFrameInternal(scoped_refptr<media::VideoFrame>& frame); | 247 void SetCurrentFrameInternal(scoped_refptr<media::VideoFrame>& frame); |
248 void RemoveSurfaceTextureAndProxy(); | |
249 void DidLoadMediaInfo(MediaInfoLoader::Status status, | 248 void DidLoadMediaInfo(MediaInfoLoader::Status status, |
250 const GURL& redirected_url, | 249 const GURL& redirected_url, |
251 const GURL& first_party_for_cookies, | 250 const GURL& first_party_for_cookies, |
252 bool allow_stored_credentials); | 251 bool allow_stored_credentials); |
253 bool IsLocalResource(); | 252 bool IsLocalResource(); |
254 | 253 |
255 // Called whenever we create a new StreamTextureProxy and had a VFP::Client, | 254 // Called whenever we create a new StreamTextureProxy and had a VFP::Client, |
256 // or when we get a new VFP::Client and had a StreamTextureProxy. | 255 // or when we get a new VFP::Client and had a StreamTextureProxy. |
257 // Sets |stream_texture_proxy_|'s OnFrameAvailable() to call |client|'s | 256 // Sets |stream_texture_proxy_|'s OnFrameAvailable() to call |client|'s |
258 // DidReceiveFrame(). | 257 // DidReceiveFrame(). |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 426 |
428 // NOTE: Weak pointers must be invalidated before all other member variables. | 427 // NOTE: Weak pointers must be invalidated before all other member variables. |
429 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 428 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
430 | 429 |
431 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 430 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
432 }; | 431 }; |
433 | 432 |
434 } // namespace content | 433 } // namespace content |
435 | 434 |
436 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 435 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |