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

Side by Side Diff: content/browser/media/android/browser_media_player_manager.h

Issue 181593004: Encrypted Media: Destroy CDM in ProxyMediaKeys' dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 10 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/media/android/browser_media_player_manager.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 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_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const GURL& frame_url); 142 const GURL& frame_url);
143 void OnCreateSession(int media_keys_id, 143 void OnCreateSession(int media_keys_id,
144 uint32 session_id, 144 uint32 session_id,
145 MediaKeysHostMsg_CreateSession_Type content_type, 145 MediaKeysHostMsg_CreateSession_Type content_type,
146 const std::vector<uint8>& init_data); 146 const std::vector<uint8>& init_data);
147 void OnUpdateSession(int media_keys_id, 147 void OnUpdateSession(int media_keys_id,
148 uint32 session_id, 148 uint32 session_id,
149 const std::vector<uint8>& response); 149 const std::vector<uint8>& response);
150 void OnReleaseSession(int media_keys_id, uint32 session_id); 150 void OnReleaseSession(int media_keys_id, uint32 session_id);
151 void OnSetMediaKeys(int player_id, int media_keys_id); 151 void OnSetMediaKeys(int player_id, int media_keys_id);
152 void OnDestroyCdm(int media_keys_id);
152 153
153 void OnCancelAllPendingSessionCreations(int media_keys_id); 154 // Cancels all pending session creations associated with |media_keys_id|.
155 void CancelAllPendingSessionCreations(int media_keys_id);
154 156
155 #if defined(VIDEO_HOLE) 157 #if defined(VIDEO_HOLE)
156 virtual void OnNotifyExternalSurface( 158 virtual void OnNotifyExternalSurface(
157 int player_id, bool is_request, const gfx::RectF& rect); 159 int player_id, bool is_request, const gfx::RectF& rect);
158 #endif // defined(VIDEO_HOLE) 160 #endif // defined(VIDEO_HOLE)
159 161
160 // Adds a given player to the list. 162 // Adds a given player to the list.
161 void AddPlayer(media::MediaPlayerAndroid* player); 163 void AddPlayer(media::MediaPlayerAndroid* player);
162 164
163 // Removes the player with the specified id. 165 // Removes the player with the specified id.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; 242 scoped_ptr<media::MediaResourceGetter> media_resource_getter_;
241 243
242 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 244 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
243 245
244 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 246 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
245 }; 247 };
246 248
247 } // namespace content 249 } // namespace content
248 250
249 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 251 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698