| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Requests remote playback if possible | 78 // Requests remote playback if possible |
| 79 void RequestRemotePlayback(int player_id) override; | 79 void RequestRemotePlayback(int player_id) override; |
| 80 | 80 |
| 81 // Requests control of remote playback | 81 // Requests control of remote playback |
| 82 void RequestRemotePlaybackControl(int player_id) override; | 82 void RequestRemotePlaybackControl(int player_id) override; |
| 83 | 83 |
| 84 // Requests the player to enter fullscreen. | 84 // Requests the player to enter fullscreen. |
| 85 void EnterFullscreen(int player_id); | 85 void EnterFullscreen(int player_id); |
| 86 | 86 |
| 87 // Requests the player with |player_id| to use the CDM with |cdm_id|. | |
| 88 // Does nothing if |cdm_id| is kInvalidCdmId. | |
| 89 // TODO(xhwang): Update this when we implement setCdm(0). | |
| 90 void SetCdm(int player_id, int cdm_id); | |
| 91 | |
| 92 // Registers and unregisters a WebMediaPlayerAndroid object. | 87 // Registers and unregisters a WebMediaPlayerAndroid object. |
| 93 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override; | 88 int RegisterMediaPlayer(media::RendererMediaPlayerInterface* player) override; |
| 94 void UnregisterMediaPlayer(int player_id) override; | 89 void UnregisterMediaPlayer(int player_id) override; |
| 95 | 90 |
| 96 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. | 91 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. |
| 97 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); | 92 media::RendererMediaPlayerInterface* GetMediaPlayer(int player_id); |
| 98 | 93 |
| 99 private: | 94 private: |
| 100 // RenderFrameObserver implementation. | 95 // RenderFrameObserver implementation. |
| 101 void OnDestruct() override; | 96 void OnDestruct() override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 132 std::map<int, media::RendererMediaPlayerInterface*> media_players_; | 127 std::map<int, media::RendererMediaPlayerInterface*> media_players_; |
| 133 | 128 |
| 134 int next_media_player_id_; | 129 int next_media_player_id_; |
| 135 | 130 |
| 136 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); | 131 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); |
| 137 }; | 132 }; |
| 138 | 133 |
| 139 } // namespace content | 134 } // namespace content |
| 140 | 135 |
| 141 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ | 136 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |