Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_manager.h

Issue 1829923003: [Android,RemotePlayback] Resolve HTMLMediaElement.remote.connect() with false when device is not se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-connect
Patch Set: Rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <set> 8 #include <set>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
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 finishes playing. 37 // Callback to trigger when the video on a remote device finishes playing.
38 void OnRemotePlaybackFinished(int player_id); 38 void OnRemotePlaybackFinished(int player_id);
39 39
40 // Callback to trigger when the availability of remote routes changes. 40 // Callback to trigger when the availability of remote routes changes.
41 void OnRouteAvailabilityChanged(int tab_id, bool routes_available); 41 void OnRouteAvailabilityChanged(int tab_id, bool routes_available);
42 42
43 // Callback to trigger when the device picker dialog was dismissed.
44 void OnCancelledRemotePlaybackRequest(int player_id);
45
43 void OnMediaMetadataChanged(int player_id, 46 void OnMediaMetadataChanged(int player_id,
44 base::TimeDelta duration, 47 base::TimeDelta duration,
45 int width, 48 int width,
46 int height, 49 int height,
47 bool success) override; 50 bool success) override;
48 51
49 // Swap which player is currently in use (local or remote). 52 // Swap which player is currently in use (local or remote).
50 void SwitchToRemotePlayer(int player_id, const std::string& casting_message); 53 void SwitchToRemotePlayer(int player_id, const std::string& casting_message);
51 void SwitchToLocalPlayer(int player_id); 54 void SwitchToLocalPlayer(int player_id);
52 55
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::unordered_map<int, GURL> poster_urls_; 117 std::unordered_map<int, GURL> poster_urls_;
115 118
116 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_; 119 base::WeakPtrFactory<RemoteMediaPlayerManager> weak_ptr_factory_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager); 121 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerManager);
119 }; 122 };
120 123
121 } // namespace remote_media 124 } // namespace remote_media
122 125
123 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_ 126 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698