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 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 private: | 124 private: |
125 // Message handlers. | 125 // Message handlers. |
126 void OnMediaMetadataChanged(int player_id, | 126 void OnMediaMetadataChanged(int player_id, |
127 base::TimeDelta duration, | 127 base::TimeDelta duration, |
128 int width, | 128 int width, |
129 int height, | 129 int height, |
130 bool success); | 130 bool success); |
131 void OnMediaPlaybackCompleted(int player_id); | 131 void OnMediaPlaybackCompleted(int player_id); |
132 void OnMediaBufferingUpdate(int player_id, int percent); | 132 void OnMediaBufferingUpdate(int player_id, int percent); |
133 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); | 133 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); |
134 void OnSeekCompleted(int player_id, const base::TimeDelta& current_time); | 134 void OnSeekCompleted(int player_id, |
| 135 const base::TimeDelta& current_timestamp); |
135 void OnMediaError(int player_id, int error); | 136 void OnMediaError(int player_id, int error); |
136 void OnVideoSizeChanged(int player_id, int width, int height); | 137 void OnVideoSizeChanged(int player_id, int width, int height); |
137 void OnTimeUpdate(int player_id, base::TimeDelta current_time); | 138 void OnTimeUpdate(int player_id, |
| 139 base::TimeDelta current_timestamp, |
| 140 base::TimeTicks current_time_ticks); |
138 void OnMediaPlayerReleased(int player_id); | 141 void OnMediaPlayerReleased(int player_id); |
139 void OnConnectedToRemoteDevice(int player_id, | 142 void OnConnectedToRemoteDevice(int player_id, |
140 const std::string& remote_playback_message); | 143 const std::string& remote_playback_message); |
141 void OnDisconnectedFromRemoteDevice(int player_id); | 144 void OnDisconnectedFromRemoteDevice(int player_id); |
142 void OnDidExitFullscreen(int player_id); | 145 void OnDidExitFullscreen(int player_id); |
143 void OnDidEnterFullscreen(int player_id); | 146 void OnDidEnterFullscreen(int player_id); |
144 void OnPlayerPlay(int player_id); | 147 void OnPlayerPlay(int player_id); |
145 void OnPlayerPause(int player_id); | 148 void OnPlayerPause(int player_id); |
146 void OnRequestFullscreen(int player_id); | 149 void OnRequestFullscreen(int player_id); |
147 void OnPauseVideo(); | 150 void OnPauseVideo(); |
(...skipping 15 matching lines...) Expand all Loading... |
163 | 166 |
164 // WebFrame of pending fullscreen request. | 167 // WebFrame of pending fullscreen request. |
165 blink::WebFrame* pending_fullscreen_frame_; | 168 blink::WebFrame* pending_fullscreen_frame_; |
166 | 169 |
167 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 170 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
168 }; | 171 }; |
169 | 172 |
170 } // namespace content | 173 } // namespace content |
171 | 174 |
172 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 175 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |