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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 class RendererMediaPlayerManagerInterface { | 80 class RendererMediaPlayerManagerInterface { |
81 public: | 81 public: |
82 // Initializes a MediaPlayerAndroid object in browser process. | 82 // Initializes a MediaPlayerAndroid object in browser process. |
83 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type, | 83 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type, |
84 int player_id, | 84 int player_id, |
85 const GURL& url, | 85 const GURL& url, |
86 const GURL& first_party_for_cookies, | 86 const GURL& first_party_for_cookies, |
87 int demuxer_client_id, | 87 int demuxer_client_id, |
88 const GURL& frame_url, | 88 const GURL& frame_url, |
89 bool allow_credentials, | 89 bool allow_credentials, |
90 int delegate_id) = 0; | 90 int delegate_id, |
| 91 int media_session_id) = 0; |
91 | 92 |
92 // Starts the player. | 93 // Starts the player. |
93 virtual void Start(int player_id) = 0; | 94 virtual void Start(int player_id) = 0; |
94 | 95 |
95 // Pauses the player. | 96 // Pauses the player. |
96 // is_media_related_action should be true if this pause is coming from an | 97 // is_media_related_action should be true if this pause is coming from an |
97 // an action that explicitly pauses the video (user pressing pause, JS, etc.) | 98 // an action that explicitly pauses the video (user pressing pause, JS, etc.) |
98 // Otherwise it should be false if Pause is being called due to other reasons | 99 // Otherwise it should be false if Pause is being called due to other reasons |
99 // (cleanup, freeing resources, etc.) | 100 // (cleanup, freeing resources, etc.) |
100 virtual void Pause(int player_id, bool is_media_related_action) = 0; | 101 virtual void Pause(int player_id, bool is_media_related_action) = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
121 virtual void RequestRemotePlaybackControl(int player_id) = 0; | 122 virtual void RequestRemotePlaybackControl(int player_id) = 0; |
122 | 123 |
123 // Registers and unregisters a RendererMediaPlayerInterface object. | 124 // Registers and unregisters a RendererMediaPlayerInterface object. |
124 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; | 125 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; |
125 virtual void UnregisterMediaPlayer(int player_id) = 0; | 126 virtual void UnregisterMediaPlayer(int player_id) = 0; |
126 }; | 127 }; |
127 | 128 |
128 } // namespace media | 129 } // namespace media |
129 | 130 |
130 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 131 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
OLD | NEW |