| 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 16 matching lines...) Expand all Loading... |
| 27 explicit RemoteMediaPlayerManager( | 27 explicit RemoteMediaPlayerManager( |
| 28 content::RenderFrameHost* render_frame_host); | 28 content::RenderFrameHost* render_frame_host); |
| 29 ~RemoteMediaPlayerManager() override; | 29 ~RemoteMediaPlayerManager() override; |
| 30 | 30 |
| 31 void OnPlaying(int player_id); | 31 void OnPlaying(int player_id); |
| 32 void OnPaused(int player_id); | 32 void OnPaused(int player_id); |
| 33 | 33 |
| 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. |
| 38 void OnRemotePlaybackStarted(int player_id); |
| 39 |
| 37 // 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. |
| 38 void OnRemotePlaybackFinished(int player_id); | 41 void OnRemotePlaybackFinished(int player_id); |
| 39 | 42 |
| 40 // Callback to trigger when the availability of remote routes changes. | 43 // Callback to trigger when the availability of remote routes changes. |
| 41 void OnRouteAvailabilityChanged(int tab_id, bool routes_available); | 44 void OnRouteAvailabilityChanged(int tab_id, bool routes_available); |
| 42 | 45 |
| 43 // Callback to trigger when the device picker dialog was dismissed. | 46 // Callback to trigger when the device picker dialog was dismissed. |
| 44 void OnCancelledRemotePlaybackRequest(int player_id); | 47 void OnCancelledRemotePlaybackRequest(int player_id); |
| 45 | 48 |
| 46 void OnMediaMetadataChanged(int player_id, | 49 void OnMediaMetadataChanged(int player_id, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 std::unordered_map<int, GURL> poster_urls_; | 121 std::unordered_map<int, GURL> poster_urls_; |
| 119 | 122 |
| 120 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; | 123 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; |
| 121 | 124 |
| 122 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); | 125 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); |
| 123 }; | 126 }; |
| 124 | 127 |
| 125 } // namespace remote_media | 128 } // namespace remote_media |
| 126 | 129 |
| 127 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ | 130 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |