| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void OnSeekComplete( | 80 virtual void OnSeekComplete( |
| 81 int player_id, | 81 int player_id, |
| 82 const base::TimeDelta& current_time) OVERRIDE; | 82 const base::TimeDelta& current_time) OVERRIDE; |
| 83 virtual void OnError(int player_id, int error) OVERRIDE; | 83 virtual void OnError(int player_id, int error) OVERRIDE; |
| 84 virtual void OnVideoSizeChanged( | 84 virtual void OnVideoSizeChanged( |
| 85 int player_id, int width, int height) OVERRIDE; | 85 int player_id, int width, int height) OVERRIDE; |
| 86 virtual media::MediaResourceGetter* GetMediaResourceGetter() OVERRIDE; | 86 virtual media::MediaResourceGetter* GetMediaResourceGetter() OVERRIDE; |
| 87 virtual media::MediaPlayerAndroid* GetFullscreenPlayer() OVERRIDE; | 87 virtual media::MediaPlayerAndroid* GetFullscreenPlayer() OVERRIDE; |
| 88 virtual media::MediaPlayerAndroid* GetPlayer(int player_id) OVERRIDE; | 88 virtual media::MediaPlayerAndroid* GetPlayer(int player_id) OVERRIDE; |
| 89 virtual void RequestFullScreen(int player_id) OVERRIDE; | 89 virtual void RequestFullScreen(int player_id) OVERRIDE; |
| 90 #if defined(VIDEO_HOLE) |
| 91 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() OVERRIDE; |
| 90 | 92 |
| 91 #if defined(VIDEO_HOLE) | |
| 92 void AttachExternalVideoSurface(int player_id, jobject surface); | 93 void AttachExternalVideoSurface(int player_id, jobject surface); |
| 93 void DetachExternalVideoSurface(int player_id); | 94 void DetachExternalVideoSurface(int player_id); |
| 94 void OnFrameInfoUpdated(); | 95 void OnFrameInfoUpdated(); |
| 95 #endif // defined(VIDEO_HOLE) | 96 #endif // defined(VIDEO_HOLE) |
| 96 | 97 |
| 97 // Message handlers. | 98 // Message handlers. |
| 98 virtual void OnEnterFullscreen(int player_id); | 99 virtual void OnEnterFullscreen(int player_id); |
| 99 virtual void OnExitFullscreen(int player_id); | 100 virtual void OnExitFullscreen(int player_id); |
| 100 virtual void OnInitialize( | 101 virtual void OnInitialize( |
| 101 const MediaPlayerHostMsg_Initialize_Params& media_player_params); | 102 const MediaPlayerHostMsg_Initialize_Params& media_player_params); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 186 |
| 186 // NOTE: Weak pointers must be invalidated before all other member variables. | 187 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 187 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 188 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
| 188 | 189 |
| 189 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace content | 193 } // namespace content |
| 193 | 194 |
| 194 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 195 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |