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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 media::MediaUrlInterceptor* media_url_interceptor); | 50 media::MediaUrlInterceptor* media_url_interceptor); |
51 | 51 |
52 // Returns a new instance using the registered factory if available. | 52 // Returns a new instance using the registered factory if available. |
53 static BrowserMediaPlayerManager* Create(RenderFrameHost* rfh); | 53 static BrowserMediaPlayerManager* Create(RenderFrameHost* rfh); |
54 | 54 |
55 ContentViewCoreImpl* GetContentViewCore() const; | 55 ContentViewCoreImpl* GetContentViewCore() const; |
56 | 56 |
57 virtual ~BrowserMediaPlayerManager(); | 57 virtual ~BrowserMediaPlayerManager(); |
58 | 58 |
59 // Fullscreen video playback controls. | 59 // Fullscreen video playback controls. |
60 virtual void FullscreenPlayerPlay(); | |
61 virtual void FullscreenPlayerPause(); | |
62 virtual void FullscreenPlayerSeek(int msec); | |
63 virtual void ExitFullscreen(bool release_media_player); | 60 virtual void ExitFullscreen(bool release_media_player); |
64 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface); | 61 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface); |
65 | 62 |
66 // Called when browser player wants the renderer media element to seek. | 63 // Called when browser player wants the renderer media element to seek. |
67 // Any actual seek started by renderer will be handled by browser in OnSeek(). | 64 // Any actual seek started by renderer will be handled by browser in OnSeek(). |
68 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); | 65 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); |
69 | 66 |
70 // Stops and releases every media managed by this class. | 67 // Stops and releases every media managed by this class. |
71 void ReleaseAllMediaPlayers(); | 68 void ReleaseAllMediaPlayers(); |
72 | 69 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 195 |
199 // NOTE: Weak pointers must be invalidated before all other member variables. | 196 // NOTE: Weak pointers must be invalidated before all other member variables. |
200 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 197 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
201 | 198 |
202 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 199 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
203 }; | 200 }; |
204 | 201 |
205 } // namespace content | 202 } // namespace content |
206 | 203 |
207 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 204 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |