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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Adds a given player to the list. | 118 // Adds a given player to the list. |
119 void AddPlayer(media::MediaPlayerAndroid* player); | 119 void AddPlayer(media::MediaPlayerAndroid* player); |
120 | 120 |
121 // Removes the player with the specified id. | 121 // Removes the player with the specified id. |
122 void RemovePlayer(int player_id); | 122 void RemovePlayer(int player_id); |
123 | 123 |
124 private: | 124 private: |
125 // An array of managed players. | 125 // An array of managed players. |
126 ScopedVector<media::MediaPlayerAndroid> players_; | 126 ScopedVector<media::MediaPlayerAndroid> players_; |
127 | 127 |
128 // The fullscreen video view object. | 128 // The fullscreen video view object or NULL if video is not played in |
129 ContentVideoView video_view_; | 129 // fullscreen. |
| 130 scoped_ptr<ContentVideoView> video_view_; |
130 | 131 |
131 // Player ID of the fullscreen media player. | 132 // Player ID of the fullscreen media player. |
132 int fullscreen_player_id_; | 133 int fullscreen_player_id_; |
133 | 134 |
134 WebContents* web_contents_; | 135 WebContents* web_contents_; |
135 | 136 |
136 // Object for retrieving resources media players. | 137 // Object for retrieving resources media players. |
137 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 138 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
138 | 139 |
139 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); | 140 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); |
140 }; | 141 }; |
141 | 142 |
142 } // namespace content | 143 } // namespace content |
143 | 144 |
144 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 145 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
OLD | NEW |