| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void OnEnterFullscreen(int player_id); | 69 void OnEnterFullscreen(int player_id); |
| 70 void OnExitFullscreen(int player_id); | 70 void OnExitFullscreen(int player_id); |
| 71 void OnInitialize(int player_id, const std::string& url, | 71 void OnInitialize(int player_id, const std::string& url, |
| 72 const std::string& first_party_for_cookies); | 72 const std::string& first_party_for_cookies); |
| 73 void OnStart(int player_id); | 73 void OnStart(int player_id); |
| 74 void OnSeek(int player_id, base::TimeDelta time); | 74 void OnSeek(int player_id, base::TimeDelta time); |
| 75 void OnPause(int player_id); | 75 void OnPause(int player_id); |
| 76 void OnReleaseResources(int player_id); | 76 void OnReleaseResources(int player_id); |
| 77 void OnDestroyPlayer(int player_id); | 77 void OnDestroyPlayer(int player_id); |
| 78 | 78 |
| 79 // Helper methods |
| 80 void ExitFromVideoView(int player_id); |
| 81 |
| 79 // An array of managed players. | 82 // An array of managed players. |
| 80 ScopedVector<media::MediaPlayerBridge> players_; | 83 ScopedVector<media::MediaPlayerBridge> players_; |
| 81 | 84 |
| 82 // The fullscreen video view object. | 85 // The fullscreen video view object. |
| 83 ContentVideoView video_view_; | 86 ContentVideoView video_view_; |
| 84 | 87 |
| 85 // Player ID of the fullscreen media player. | 88 // Player ID of the media player that uses video view. |
| 86 int fullscreen_player_id_; | 89 int video_view_player_id_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); | 91 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace content | 94 } // namespace content |
| 92 | 95 |
| 93 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 96 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
| OLD | NEW |