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

Side by Side Diff: content/browser/android/media_player_manager_impl.h

Issue 17101027: Add a function to convert key system into UUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/android/media_player_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual void OnNotifyExternalSurface( 137 virtual void OnNotifyExternalSurface(
138 int player_id, bool is_request, const gfx::RectF& rect); 138 int player_id, bool is_request, const gfx::RectF& rect);
139 #endif 139 #endif
140 140
141 // Adds a given player to the list. 141 // Adds a given player to the list.
142 void AddPlayer(media::MediaPlayerAndroid* player); 142 void AddPlayer(media::MediaPlayerAndroid* player);
143 143
144 // Removes the player with the specified id. 144 // Removes the player with the specified id.
145 void RemovePlayer(int player_id); 145 void RemovePlayer(int player_id);
146 146
147 // Add a new DrmBridge for the given |uuid| and |media_keys_id|.
148 void AddDrmBridge(int media_keys_id, const std::vector<uint8>& uuid);
149
147 // Removes the DRM bridge with the specified id. 150 // Removes the DRM bridge with the specified id.
148 void RemoveDrmBridge(int key_id); 151 void RemoveDrmBridge(int media_keys_id);
149 152
150 private: 153 private:
151 // An array of managed players. 154 // An array of managed players.
152 ScopedVector<media::MediaPlayerAndroid> players_; 155 ScopedVector<media::MediaPlayerAndroid> players_;
153 156
154 // An array of managed media DRM bridges. 157 // An array of managed media DRM bridges.
155 ScopedVector<media::MediaDrmBridge> drm_bridges_; 158 ScopedVector<media::MediaDrmBridge> drm_bridges_;
156 159
157 // The fullscreen video view object or NULL if video is not played in 160 // The fullscreen video view object or NULL if video is not played in
158 // fullscreen. 161 // fullscreen.
159 scoped_ptr<ContentVideoView> video_view_; 162 scoped_ptr<ContentVideoView> video_view_;
160 163
161 // Player ID of the fullscreen media player. 164 // Player ID of the fullscreen media player.
162 int fullscreen_player_id_; 165 int fullscreen_player_id_;
163 166
164 WebContents* web_contents_; 167 WebContents* web_contents_;
165 168
166 // Object for retrieving resources media players. 169 // Object for retrieving resources media players.
167 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 170 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
168 171
169 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); 172 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl);
170 }; 173 };
171 174
172 } // namespace content 175 } // namespace content
173 176
174 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ 177 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/media_player_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698