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_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 const GURL& first_party_for_cookies, | 130 const GURL& first_party_for_cookies, |
131 int demuxer_client_id); | 131 int demuxer_client_id); |
132 virtual void OnStart(int player_id); | 132 virtual void OnStart(int player_id); |
133 virtual void OnSeek(int player_id, const base::TimeDelta& time); | 133 virtual void OnSeek(int player_id, const base::TimeDelta& time); |
134 virtual void OnPause(int player_id, bool is_media_related_action); | 134 virtual void OnPause(int player_id, bool is_media_related_action); |
135 virtual void OnSetVolume(int player_id, double volume); | 135 virtual void OnSetVolume(int player_id, double volume); |
136 virtual void OnSetPoster(int player_id, const GURL& poster); | 136 virtual void OnSetPoster(int player_id, const GURL& poster); |
137 virtual void OnReleaseResources(int player_id); | 137 virtual void OnReleaseResources(int player_id); |
138 virtual void OnDestroyPlayer(int player_id); | 138 virtual void OnDestroyPlayer(int player_id); |
139 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); | 139 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); |
140 void OnInitializeCDM(int media_keys_id, | 140 void OnInitializeCDM(int media_keys_id, |
xhwang
2014/02/26 18:55:52
I'll update CDM to Cdm in a followup cleanup CL.
| |
141 const std::vector<uint8>& uuid, | 141 const std::vector<uint8>& uuid, |
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 | 152 void OnDestroyCdm(int media_keys_id); |
153 void OnCancelAllPendingSessionCreations(int media_keys_id); | |
154 | 153 |
155 #if defined(VIDEO_HOLE) | 154 #if defined(VIDEO_HOLE) |
156 virtual void OnNotifyExternalSurface( | 155 virtual void OnNotifyExternalSurface( |
157 int player_id, bool is_request, const gfx::RectF& rect); | 156 int player_id, bool is_request, const gfx::RectF& rect); |
158 #endif // defined(VIDEO_HOLE) | 157 #endif // defined(VIDEO_HOLE) |
159 | 158 |
160 // Adds a given player to the list. | 159 // Adds a given player to the list. |
161 void AddPlayer(media::MediaPlayerAndroid* player); | 160 void AddPlayer(media::MediaPlayerAndroid* player); |
162 | 161 |
163 // Removes the player with the specified id. | 162 // Removes the player with the specified id. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 239 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
241 | 240 |
242 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 241 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
243 | 242 |
244 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 243 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
245 }; | 244 }; |
246 | 245 |
247 } // namespace content | 246 } // namespace content |
248 | 247 |
249 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 248 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |