| 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 #include <vector> | 10 #include <vector> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Otherwise it should be false if Pause is being called due to other reasons | 57 // Otherwise it should be false if Pause is being called due to other reasons |
| 58 // (cleanup, freeing resources, etc.) | 58 // (cleanup, freeing resources, etc.) |
| 59 void Pause(int player_id, bool is_media_related_action); | 59 void Pause(int player_id, bool is_media_related_action); |
| 60 | 60 |
| 61 // Performs seek on the player. | 61 // Performs seek on the player. |
| 62 void Seek(int player_id, const base::TimeDelta& time); | 62 void Seek(int player_id, const base::TimeDelta& time); |
| 63 | 63 |
| 64 // Sets the player volume. | 64 // Sets the player volume. |
| 65 void SetVolume(int player_id, double volume); | 65 void SetVolume(int player_id, double volume); |
| 66 | 66 |
| 67 // Sets the poster image. |
| 68 void SetPoster(int player_id, const GURL& poster); |
| 69 |
| 67 // Releases resources for the player. | 70 // Releases resources for the player. |
| 68 void ReleaseResources(int player_id); | 71 void ReleaseResources(int player_id); |
| 69 | 72 |
| 70 // Destroys the player in the browser process | 73 // Destroys the player in the browser process |
| 71 void DestroyPlayer(int player_id); | 74 void DestroyPlayer(int player_id); |
| 72 | 75 |
| 73 // Requests the player to enter fullscreen. | 76 // Requests the player to enter fullscreen. |
| 74 void EnterFullscreen(int player_id, blink::WebFrame* frame); | 77 void EnterFullscreen(int player_id, blink::WebFrame* frame); |
| 75 | 78 |
| 76 // Requests the player to exit fullscreen. | 79 // Requests the player to exit fullscreen. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 191 |
| 189 // WebFrame of pending fullscreen request. | 192 // WebFrame of pending fullscreen request. |
| 190 blink::WebFrame* pending_fullscreen_frame_; | 193 blink::WebFrame* pending_fullscreen_frame_; |
| 191 | 194 |
| 192 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 195 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 } // namespace content | 198 } // namespace content |
| 196 | 199 |
| 197 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 200 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |