Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/renderer/media/android/renderer_media_player_manager.h

Issue 2380743004: media: Remove Browser CDM implementation (Closed)
Patch Set: media: Remove Browser CDM implementation Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698