| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Called to update the current time. | 192 // Called to update the current time. |
| 193 void OnTimeUpdate(base::TimeDelta current_timestamp, | 193 void OnTimeUpdate(base::TimeDelta current_timestamp, |
| 194 base::TimeTicks current_time_ticks) override; | 194 base::TimeTicks current_time_ticks) override; |
| 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 OnDidExitFullscreen() override; | 202 void OnDidExitFullscreen() override; |
| 202 void OnMediaPlayerPlay() override; | 203 void OnMediaPlayerPlay() override; |
| 203 void OnMediaPlayerPause() override; | 204 void OnMediaPlayerPause() override; |
| 204 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 205 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; |
| 205 | 206 |
| 206 // Called when the player is released. | 207 // Called when the player is released. |
| 207 void OnPlayerReleased() override; | 208 void OnPlayerReleased() override; |
| 208 | 209 |
| 209 // This function is called by the RendererMediaPlayerManager to pause the | 210 // This function is called by the RendererMediaPlayerManager to pause the |
| 210 // video and release the media player and surface texture when we switch tabs. | 211 // video and release the media player and surface texture when we switch tabs. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 425 |
| 425 // NOTE: Weak pointers must be invalidated before all other member variables. | 426 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 426 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 427 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 427 | 428 |
| 428 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 429 }; | 430 }; |
| 430 | 431 |
| 431 } // namespace content | 432 } // namespace content |
| 432 | 433 |
| 433 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |