| 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 <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const MediaPlayerHostMsg_Initialize_Params& media_player_params); | 106 const MediaPlayerHostMsg_Initialize_Params& media_player_params); |
| 107 virtual void OnStart(int player_id); | 107 virtual void OnStart(int player_id); |
| 108 virtual void OnSeek(int player_id, const base::TimeDelta& time); | 108 virtual void OnSeek(int player_id, const base::TimeDelta& time); |
| 109 virtual void OnPause(int player_id, bool is_media_related_action); | 109 virtual void OnPause(int player_id, bool is_media_related_action); |
| 110 virtual void OnSetVolume(int player_id, double volume); | 110 virtual void OnSetVolume(int player_id, double volume); |
| 111 virtual void OnSetPoster(int player_id, const GURL& poster); | 111 virtual void OnSetPoster(int player_id, const GURL& poster); |
| 112 virtual void OnSuspendAndReleaseResources(int player_id); | 112 virtual void OnSuspendAndReleaseResources(int player_id); |
| 113 virtual void OnDestroyPlayer(int player_id); | 113 virtual void OnDestroyPlayer(int player_id); |
| 114 virtual void OnRequestRemotePlayback(int player_id); | 114 virtual void OnRequestRemotePlayback(int player_id); |
| 115 virtual void OnRequestRemotePlaybackControl(int player_id); | 115 virtual void OnRequestRemotePlaybackControl(int player_id); |
| 116 virtual void OnRequestRemotePlaybackStop(int player_id); |
| 116 virtual bool IsPlayingRemotely(int player_id); | 117 virtual bool IsPlayingRemotely(int player_id); |
| 117 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); | 118 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); |
| 118 | 119 |
| 119 protected: | 120 protected: |
| 120 // Clients must use Create() or subclass constructor. | 121 // Clients must use Create() or subclass constructor. |
| 121 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host); | 122 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host); |
| 122 | 123 |
| 123 WebContents* web_contents() const { return web_contents_; } | 124 WebContents* web_contents() const { return web_contents_; } |
| 124 | 125 |
| 125 // Adds a given player to the list. Not private to allow embedders | 126 // Adds a given player to the list. Not private to allow embedders |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 208 |
| 208 // NOTE: Weak pointers must be invalidated before all other member variables. | 209 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 209 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 210 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
| 210 | 211 |
| 211 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace content | 215 } // namespace content |
| 215 | 216 |
| 216 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 217 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |