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