| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void OnError(int player_id, int error) override; | 91 void OnError(int player_id, int error) override; |
| 92 void OnVideoSizeChanged(int player_id, int width, int height) override; | 92 void OnVideoSizeChanged(int player_id, int width, int height) override; |
| 93 void OnAudibleStateChanged( | 93 void OnAudibleStateChanged( |
| 94 int player_id, bool is_audible_now) override; | 94 int player_id, bool is_audible_now) override; |
| 95 void OnWaitingForDecryptionKey(int player_id) override; | 95 void OnWaitingForDecryptionKey(int player_id) override; |
| 96 | 96 |
| 97 media::MediaResourceGetter* GetMediaResourceGetter() override; | 97 media::MediaResourceGetter* GetMediaResourceGetter() override; |
| 98 media::MediaUrlInterceptor* GetMediaUrlInterceptor() override; | 98 media::MediaUrlInterceptor* GetMediaUrlInterceptor() override; |
| 99 media::MediaPlayerAndroid* GetFullscreenPlayer() override; | 99 media::MediaPlayerAndroid* GetFullscreenPlayer() override; |
| 100 media::MediaPlayerAndroid* GetPlayer(int player_id) override; | 100 media::MediaPlayerAndroid* GetPlayer(int player_id) override; |
| 101 void RequestFullScreen(int player_id) override; | |
| 102 bool RequestPlay(int player_id) override; | 101 bool RequestPlay(int player_id) override; |
| 103 #if defined(VIDEO_HOLE) | 102 #if defined(VIDEO_HOLE) |
| 104 void AttachExternalVideoSurface(int player_id, jobject surface); | 103 void AttachExternalVideoSurface(int player_id, jobject surface); |
| 105 void DetachExternalVideoSurface(int player_id); | 104 void DetachExternalVideoSurface(int player_id); |
| 106 void OnFrameInfoUpdated(); | 105 void OnFrameInfoUpdated(); |
| 107 #endif // defined(VIDEO_HOLE) | 106 #endif // defined(VIDEO_HOLE) |
| 108 | 107 |
| 109 // MediaSessionObserver overrides. | 108 // MediaSessionObserver overrides. |
| 110 void OnSuspend(int player_id) override; | 109 void OnSuspend(int player_id) override; |
| 111 void OnResume(int player_id) override; | 110 void OnResume(int player_id) override; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 208 |
| 210 // NOTE: Weak pointers must be invalidated before all other member variables. | 209 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 211 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; | 210 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 } // namespace content | 215 } // namespace content |
| 217 | 216 |
| 218 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 217 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |