| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Destroys the player in the browser process | 65 // Destroys the player in the browser process |
| 66 void DestroyPlayer(int player_id) override; | 66 void DestroyPlayer(int player_id) override; |
| 67 | 67 |
| 68 // Requests remote playback if possible | 68 // Requests remote playback if possible |
| 69 void RequestRemotePlayback(int player_id) override; | 69 void RequestRemotePlayback(int player_id) override; |
| 70 | 70 |
| 71 // Requests control of remote playback | 71 // Requests control of remote playback |
| 72 void RequestRemotePlaybackControl(int player_id) override; | 72 void RequestRemotePlaybackControl(int player_id) override; |
| 73 | 73 |
| 74 // Requests stopping remote playback |
| 75 void RequestRemotePlaybackStop(int player_id) override; |
| 76 |
| 74 // Requests the player to enter fullscreen. | 77 // Requests the player to enter fullscreen. |
| 75 void EnterFullscreen(int player_id); | 78 void EnterFullscreen(int player_id); |
| 76 | 79 |
| 77 // Registers and unregisters a WebMediaPlayerAndroid object. | 80 // Registers and unregisters a WebMediaPlayerAndroid object. |
| 78 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override; | 81 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override; |
| 79 void UnregisterMediaPlayer(int player_id) override; | 82 void UnregisterMediaPlayer(int player_id) override; |
| 80 | 83 |
| 81 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. | 84 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. |
| 82 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); | 85 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); |
| 83 | 86 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 std::map<int, media::RendererMediaPlayerInterface*> media_players_; | 120 std::map<int, media::RendererMediaPlayerInterface*> media_players_; |
| 118 | 121 |
| 119 int next_media_player_id_; | 122 int next_media_player_id_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 124 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace content | 127 } // namespace content |
| 125 | 128 |
| 126 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 129 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |