| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 5 #ifndef MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| 6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| 7 | 7 |
| 8 // This file contains interfaces modeled after classes in | 8 // This file contains interfaces modeled after classes in |
| 9 // content/renderer/media/android for the purposes of letting clases in | 9 // content/renderer/media/android for the purposes of letting clases in |
| 10 // this directory implement and/or interact with those classes. | 10 // this directory implement and/or interact with those classes. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 // Destroys the player in the browser process | 103 // Destroys the player in the browser process |
| 104 virtual void DestroyPlayer(int player_id) = 0; | 104 virtual void DestroyPlayer(int player_id) = 0; |
| 105 | 105 |
| 106 // Requests remote playback if possible | 106 // Requests remote playback if possible |
| 107 virtual void RequestRemotePlayback(int player_id) = 0; | 107 virtual void RequestRemotePlayback(int player_id) = 0; |
| 108 | 108 |
| 109 // Requests control of remote playback | 109 // Requests control of remote playback |
| 110 virtual void RequestRemotePlaybackControl(int player_id) = 0; | 110 virtual void RequestRemotePlaybackControl(int player_id) = 0; |
| 111 | 111 |
| 112 // Requests stopping remote playback |
| 113 virtual void RequestRemotePlaybackStop(int player_id) = 0; |
| 114 |
| 112 // Registers and unregisters a RendererMediaPlayerInterface object. | 115 // Registers and unregisters a RendererMediaPlayerInterface object. |
| 113 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; | 116 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; |
| 114 virtual void UnregisterMediaPlayer(int player_id) = 0; | 117 virtual void UnregisterMediaPlayer(int player_id) = 0; |
| 115 }; | 118 }; |
| 116 | 119 |
| 117 } // namespace media | 120 } // namespace media |
| 118 | 121 |
| 119 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 122 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| OLD | NEW |