| 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ | 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Callback to trigger when a remote device has been unselected. | 34 // Callback to trigger when a remote device has been unselected. |
| 35 void OnRemoteDeviceUnselected(int player_id); | 35 void OnRemoteDeviceUnselected(int player_id); |
| 36 | 36 |
| 37 // Callback to trigger when the video on a remote device starts playing. | 37 // Callback to trigger when the video on a remote device starts playing. |
| 38 void OnRemotePlaybackStarted(int player_id); | 38 void OnRemotePlaybackStarted(int player_id); |
| 39 | 39 |
| 40 // Callback to trigger when the video on a remote device finishes playing. | 40 // Callback to trigger when the video on a remote device finishes playing. |
| 41 void OnRemotePlaybackFinished(int player_id); | 41 void OnRemotePlaybackFinished(int player_id); |
| 42 | 42 |
| 43 // Callback to trigger when the availability of remote routes changes. | 43 // Callback to trigger when the availability of remote routes changes. |
| 44 void OnRouteAvailabilityChanged(int tab_id, bool routes_available); | 44 void OnRouteAvailabilityChanged( |
| 45 int player_id, bool is_route_available, bool is_source_compatible); |
| 45 | 46 |
| 46 // Callback to trigger when the device picker dialog was dismissed. | 47 // Callback to trigger when the device picker dialog was dismissed. |
| 47 void OnCancelledRemotePlaybackRequest(int player_id); | 48 void OnCancelledRemotePlaybackRequest(int player_id); |
| 48 | 49 |
| 49 void OnMediaMetadataChanged(int player_id, | 50 void OnMediaMetadataChanged(int player_id, |
| 50 base::TimeDelta duration, | 51 base::TimeDelta duration, |
| 51 int width, | 52 int width, |
| 52 int height, | 53 int height, |
| 53 bool success) override; | 54 bool success) override; |
| 54 | 55 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 std::unordered_map<int, GURL> poster_urls_; | 122 std::unordered_map<int, GURL> poster_urls_; |
| 122 | 123 |
| 123 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; | 124 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); | 126 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 } // namespace remote_media | 129 } // namespace remote_media |
| 129 | 130 |
| 130 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ | 131 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |