| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Functions called when media player status changes. | 196 // Functions called when media player status changes. |
| 197 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) | 197 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) |
| 198 override; | 198 override; |
| 199 void OnDisconnectedFromRemoteDevice() override; | 199 void OnDisconnectedFromRemoteDevice() override; |
| 200 void OnCancelledRemotePlaybackRequest() override; | 200 void OnCancelledRemotePlaybackRequest() override; |
| 201 void OnRemotePlaybackStarted() override; | 201 void OnRemotePlaybackStarted() override; |
| 202 void OnDidExitFullscreen() override; | 202 void OnDidExitFullscreen() override; |
| 203 void OnMediaPlayerPlay() override; | 203 void OnMediaPlayerPlay() override; |
| 204 void OnMediaPlayerPause() override; | 204 void OnMediaPlayerPause() override; |
| 205 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 205 void OnRemoteRouteAvailabilityChanged( |
| 206 bool is_route_available, bool is_source_compatible) override; |
| 206 | 207 |
| 207 // Called when the player is released. | 208 // Called when the player is released. |
| 208 void OnPlayerReleased() override; | 209 void OnPlayerReleased() override; |
| 209 | 210 |
| 210 // This function is called by the RendererMediaPlayerManager to pause the | 211 // This function is called by the RendererMediaPlayerManager to pause the |
| 211 // video and release the media player and surface texture when we switch tabs. | 212 // 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. | 213 // However, the actual GlTexture is not released to keep the video screenshot. |
| 213 void SuspendAndReleaseResources() override; | 214 void SuspendAndReleaseResources() override; |
| 214 | 215 |
| 215 // WebMediaPlayerDelegate::Observer implementation. | 216 // WebMediaPlayerDelegate::Observer implementation. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 426 |
| 426 // NOTE: Weak pointers must be invalidated before all other member variables. | 427 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 427 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 428 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 428 | 429 |
| 429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 430 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 430 }; | 431 }; |
| 431 | 432 |
| 432 } // namespace content | 433 } // namespace content |
| 433 | 434 |
| 434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 435 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |