| 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 24 matching lines...) Expand all Loading... |
| 35 namespace base { | 35 namespace base { |
| 36 class SingleThreadTaskRunner; | 36 class SingleThreadTaskRunner; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class WebContentDecryptionModule; | 40 class WebContentDecryptionModule; |
| 41 class WebFrame; | 41 class WebFrame; |
| 42 class WebMediaPlayerClient; | 42 class WebMediaPlayerClient; |
| 43 class WebMediaPlayerEncryptedMediaClient; | 43 class WebMediaPlayerEncryptedMediaClient; |
| 44 class WebURL; | 44 class WebURL; |
| 45 enum class WebRemotePlaybackAvailability; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace cc_blink { | 48 namespace cc_blink { |
| 48 class WebLayerImpl; | 49 class WebLayerImpl; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace gpu { | 52 namespace gpu { |
| 52 namespace gles2 { | 53 namespace gles2 { |
| 53 class GLES2Interface; | 54 class GLES2Interface; |
| 54 } | 55 } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 196 |
| 196 // Functions called when media player status changes. | 197 // Functions called when media player status changes. |
| 197 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) | 198 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) |
| 198 override; | 199 override; |
| 199 void OnDisconnectedFromRemoteDevice() override; | 200 void OnDisconnectedFromRemoteDevice() override; |
| 200 void OnCancelledRemotePlaybackRequest() override; | 201 void OnCancelledRemotePlaybackRequest() override; |
| 201 void OnRemotePlaybackStarted() override; | 202 void OnRemotePlaybackStarted() override; |
| 202 void OnDidExitFullscreen() override; | 203 void OnDidExitFullscreen() override; |
| 203 void OnMediaPlayerPlay() override; | 204 void OnMediaPlayerPlay() override; |
| 204 void OnMediaPlayerPause() override; | 205 void OnMediaPlayerPause() override; |
| 205 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 206 void OnRemoteRouteAvailabilityChanged( |
| 207 blink::WebRemotePlaybackAvailability availability) override; |
| 206 | 208 |
| 207 // Called when the player is released. | 209 // Called when the player is released. |
| 208 void OnPlayerReleased() override; | 210 void OnPlayerReleased() override; |
| 209 | 211 |
| 210 // This function is called by the RendererMediaPlayerManager to pause the | 212 // This function is called by the RendererMediaPlayerManager to pause the |
| 211 // video and release the media player and surface texture when we switch tabs. | 213 // video and release the media player and surface texture when we switch tabs. |
| 212 // However, the actual GlTexture is not released to keep the video screenshot. | 214 // However, the actual GlTexture is not released to keep the video screenshot. |
| 213 void SuspendAndReleaseResources() override; | 215 void SuspendAndReleaseResources() override; |
| 214 | 216 |
| 215 // WebMediaPlayerDelegate::Observer implementation. | 217 // WebMediaPlayerDelegate::Observer implementation. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 427 |
| 426 // NOTE: Weak pointers must be invalidated before all other member variables. | 428 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 427 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 429 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 428 | 430 |
| 429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 431 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 430 }; | 432 }; |
| 431 | 433 |
| 432 } // namespace content | 434 } // namespace content |
| 433 | 435 |
| 434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 436 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |