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

Side by Side Diff: content/renderer/media/android/renderer_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 CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void OnMediaError(int player_id, int error); 130 void OnMediaError(int player_id, int error);
131 void OnVideoSizeChanged(int player_id, int width, int height); 131 void OnVideoSizeChanged(int player_id, int width, int height);
132 void OnTimeUpdate(int player_id, 132 void OnTimeUpdate(int player_id,
133 base::TimeDelta current_timestamp, 133 base::TimeDelta current_timestamp,
134 base::TimeTicks current_time_ticks); 134 base::TimeTicks current_time_ticks);
135 void OnWaitingForDecryptionKey(int player_id); 135 void OnWaitingForDecryptionKey(int player_id);
136 void OnMediaPlayerReleased(int player_id); 136 void OnMediaPlayerReleased(int player_id);
137 void OnConnectedToRemoteDevice(int player_id, 137 void OnConnectedToRemoteDevice(int player_id,
138 const std::string& remote_playback_message); 138 const std::string& remote_playback_message);
139 void OnDisconnectedFromRemoteDevice(int player_id); 139 void OnDisconnectedFromRemoteDevice(int player_id);
140 void OnCancelledRemotePlaybackRequest(int player_id);
140 void OnDidExitFullscreen(int player_id); 141 void OnDidExitFullscreen(int player_id);
141 void OnDidEnterFullscreen(int player_id); 142 void OnDidEnterFullscreen(int player_id);
142 void OnPlayerPlay(int player_id); 143 void OnPlayerPlay(int player_id);
143 void OnPlayerPause(int player_id); 144 void OnPlayerPause(int player_id);
144 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available); 145 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available);
145 146
146 // Info for all available WebMediaPlayerAndroid on a page; kept so that 147 // Info for all available WebMediaPlayerAndroid on a page; kept so that
147 // we can enumerate them to send updates about tab focus and visibility. 148 // we can enumerate them to send updates about tab focus and visibility.
148 std::map<int, media::RendererMediaPlayerInterface*> media_players_; 149 std::map<int, media::RendererMediaPlayerInterface*> media_players_;
149 150
150 int next_media_player_id_; 151 int next_media_player_id_;
151 152
152 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 153 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
153 }; 154 };
154 155
155 } // namespace content 156 } // namespace content
156 157
157 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 158 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/media/media_player_messages_android.h ('k') | content/renderer/media/android/renderer_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698