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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // Message handlers. | 120 // Message handlers. |
121 virtual void OnEnterFullscreen(int player_id); | 121 virtual void OnEnterFullscreen(int player_id); |
122 virtual void OnExitFullscreen(int player_id); | 122 virtual void OnExitFullscreen(int player_id); |
123 virtual void OnInitialize( | 123 virtual void OnInitialize( |
124 MediaPlayerHostMsg_Initialize_Type type, | 124 MediaPlayerHostMsg_Initialize_Type type, |
125 int player_id, | 125 int player_id, |
126 const GURL& url, | 126 const GURL& url, |
127 const GURL& first_party_for_cookies, | 127 const GURL& first_party_for_cookies, |
128 int demuxer_client_id); | 128 int demuxer_client_id); |
| 129 virtual void OnSetPlayerFrameUrl(int player_id, const GURL& frame_url); |
129 virtual void OnStart(int player_id); | 130 virtual void OnStart(int player_id); |
130 virtual void OnSeek(int player_id, const base::TimeDelta& time); | 131 virtual void OnSeek(int player_id, const base::TimeDelta& time); |
131 virtual void OnPause(int player_id, bool is_media_related_action); | 132 virtual void OnPause(int player_id, bool is_media_related_action); |
132 virtual void OnSetVolume(int player_id, double volume); | 133 virtual void OnSetVolume(int player_id, double volume); |
133 virtual void OnSetPoster(int player_id, const GURL& poster); | 134 virtual void OnSetPoster(int player_id, const GURL& poster); |
134 virtual void OnReleaseResources(int player_id); | 135 virtual void OnReleaseResources(int player_id); |
135 virtual void OnDestroyPlayer(int player_id); | 136 virtual void OnDestroyPlayer(int player_id); |
136 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); | 137 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); |
137 void OnInitializeCdm(int cdm_id, | 138 void OnInitializeCdm(int cdm_id, |
138 const std::string& key_system, | 139 const std::string& key_system, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 252 |
252 // NOTE: Weak pointers must be invalidated before all other member variables. | 253 // NOTE: Weak pointers must be invalidated before all other member variables. |
253 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 254 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
254 | 255 |
255 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 256 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
256 }; | 257 }; |
257 | 258 |
258 } // namespace content | 259 } // namespace content |
259 | 260 |
260 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 261 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |