| 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 <string> | 10 #include <string> |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void OnDurationChanged(const base::TimeDelta& duration); | 200 void OnDurationChanged(const base::TimeDelta& duration); |
| 201 | 201 |
| 202 // Called to update the current time. | 202 // Called to update the current time. |
| 203 void OnTimeUpdate(base::TimeDelta current_timestamp, | 203 void OnTimeUpdate(base::TimeDelta current_timestamp, |
| 204 base::TimeTicks current_time_ticks) override; | 204 base::TimeTicks current_time_ticks) override; |
| 205 | 205 |
| 206 // Functions called when media player status changes. | 206 // Functions called when media player status changes. |
| 207 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) | 207 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) |
| 208 override; | 208 override; |
| 209 void OnDisconnectedFromRemoteDevice() override; | 209 void OnDisconnectedFromRemoteDevice() override; |
| 210 void OnCancelledRemotePlaybackRequest() override; |
| 210 void OnDidExitFullscreen() override; | 211 void OnDidExitFullscreen() override; |
| 211 void OnMediaPlayerPlay() override; | 212 void OnMediaPlayerPlay() override; |
| 212 void OnMediaPlayerPause() override; | 213 void OnMediaPlayerPause() override; |
| 213 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 214 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; |
| 214 | 215 |
| 215 // StreamTextureFactoryContextObserver implementation. | 216 // StreamTextureFactoryContextObserver implementation. |
| 216 void ResetStreamTextureProxy() override; | 217 void ResetStreamTextureProxy() override; |
| 217 | 218 |
| 218 // Called when the player is released. | 219 // Called when the player is released. |
| 219 void OnPlayerReleased() override; | 220 void OnPlayerReleased() override; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 517 |
| 517 // NOTE: Weak pointers must be invalidated before all other member variables. | 518 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 518 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 519 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 519 | 520 |
| 520 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 521 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 521 }; | 522 }; |
| 522 | 523 |
| 523 } // namespace content | 524 } // namespace content |
| 524 | 525 |
| 525 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 526 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |