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

Side by Side Diff: content/renderer/media/android/renderer_media_player_manager.h

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Fixed mocks Created 4 years, 1 month 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void OnMediaError(int player_id, int error); 109 void OnMediaError(int player_id, int error);
110 void OnVideoSizeChanged(int player_id, int width, int height); 110 void OnVideoSizeChanged(int player_id, int width, int height);
111 void OnTimeUpdate(int player_id, 111 void OnTimeUpdate(int player_id,
112 base::TimeDelta current_timestamp, 112 base::TimeDelta current_timestamp,
113 base::TimeTicks current_time_ticks); 113 base::TimeTicks current_time_ticks);
114 void OnMediaPlayerReleased(int player_id); 114 void OnMediaPlayerReleased(int player_id);
115 void OnConnectedToRemoteDevice(int player_id, 115 void OnConnectedToRemoteDevice(int player_id,
116 const std::string& remote_playback_message); 116 const std::string& remote_playback_message);
117 void OnDisconnectedFromRemoteDevice(int player_id); 117 void OnDisconnectedFromRemoteDevice(int player_id);
118 void OnCancelledRemotePlaybackRequest(int player_id); 118 void OnCancelledRemotePlaybackRequest(int player_id);
119 void OnRemotePlaybackStarted(int player_id);
119 void OnDidExitFullscreen(int player_id); 120 void OnDidExitFullscreen(int player_id);
120 void OnDidEnterFullscreen(int player_id); 121 void OnDidEnterFullscreen(int player_id);
121 void OnPlayerPlay(int player_id); 122 void OnPlayerPlay(int player_id);
122 void OnPlayerPause(int player_id); 123 void OnPlayerPause(int player_id);
123 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available); 124 void OnRemoteRouteAvailabilityChanged(int player_id, bool routes_available);
124 125
125 // Info for all available WebMediaPlayerAndroid on a page; kept so that 126 // Info for all available WebMediaPlayerAndroid on a page; kept so that
126 // we can enumerate them to send updates about tab focus and visibility. 127 // we can enumerate them to send updates about tab focus and visibility.
127 std::map<int, media::RendererMediaPlayerInterface*> media_players_; 128 std::map<int, media::RendererMediaPlayerInterface*> media_players_;
128 129
129 int next_media_player_id_; 130 int next_media_player_id_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 132 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
132 }; 133 };
133 134
134 } // namespace content 135 } // namespace content
135 136
136 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 137 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698