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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 virtual void OnExitFullscreen(int player_id); | 106 virtual void OnExitFullscreen(int player_id); |
107 virtual void OnInitialize( | 107 virtual void OnInitialize( |
108 const MediaPlayerHostMsg_Initialize_Params& media_player_params); | 108 const MediaPlayerHostMsg_Initialize_Params& media_player_params); |
109 virtual void OnStart(int player_id); | 109 virtual void OnStart(int player_id); |
110 virtual void OnSeek(int player_id, const base::TimeDelta& time); | 110 virtual void OnSeek(int player_id, const base::TimeDelta& time); |
111 virtual void OnPause(int player_id, bool is_media_related_action); | 111 virtual void OnPause(int player_id, bool is_media_related_action); |
112 virtual void OnSetVolume(int player_id, double volume); | 112 virtual void OnSetVolume(int player_id, double volume); |
113 virtual void OnSetPoster(int player_id, const GURL& poster); | 113 virtual void OnSetPoster(int player_id, const GURL& poster); |
114 virtual void OnReleaseResources(int player_id); | 114 virtual void OnReleaseResources(int player_id); |
115 virtual void OnDestroyPlayer(int player_id); | 115 virtual void OnDestroyPlayer(int player_id); |
| 116 virtual void OnRequestRemotePlayback(int player_id); |
| 117 virtual void OnRequestRemotePlaybackControl(int player_id); |
116 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); | 118 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); |
117 #if defined(VIDEO_HOLE) | 119 #if defined(VIDEO_HOLE) |
118 void OnNotifyExternalSurface( | 120 void OnNotifyExternalSurface( |
119 int player_id, bool is_request, const gfx::RectF& rect); | 121 int player_id, bool is_request, const gfx::RectF& rect); |
120 #endif // defined(VIDEO_HOLE) | 122 #endif // defined(VIDEO_HOLE) |
121 | 123 |
122 protected: | 124 protected: |
123 // Clients must use Create() or subclass constructor. | 125 // Clients must use Create() or subclass constructor. |
124 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host); | 126 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host); |
125 | 127 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 194 |
193 // NOTE: Weak pointers must be invalidated before all other member variables. | 195 // NOTE: Weak pointers must be invalidated before all other member variables. |
194 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 196 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
195 | 197 |
196 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 198 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
197 }; | 199 }; |
198 | 200 |
199 } // namespace content | 201 } // namespace content |
200 | 202 |
201 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 203 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |