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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Whether the player is prepared for playback. | 127 // Whether the player is prepared for playback. |
128 bool prepared_; | 128 bool prepared_; |
129 | 129 |
130 // Pending play event while player is preparing. | 130 // Pending play event while player is preparing. |
131 bool pending_play_; | 131 bool pending_play_; |
132 | 132 |
133 // Pending seek time while player is preparing. | 133 // Pending seek time while player is preparing. |
134 base::TimeDelta pending_seek_; | 134 base::TimeDelta pending_seek_; |
135 | 135 |
| 136 // The surface object used by the java MediaPlayer object to draw onto. |
| 137 gfx::ScopedJavaSurface surface_; |
| 138 |
136 // Url for playback. | 139 // Url for playback. |
137 GURL url_; | 140 GURL url_; |
138 | 141 |
139 // First party url for cookies. | 142 // First party url for cookies. |
140 GURL first_party_for_cookies_; | 143 GURL first_party_for_cookies_; |
141 | 144 |
142 // Hide url log from media player. | 145 // Hide url log from media player. |
143 bool hide_url_log_; | 146 bool hide_url_log_; |
144 | 147 |
145 // Stats about the media. | 148 // Stats about the media. |
(...skipping 20 matching lines...) Expand all Loading... |
166 // Listener object that listens to all the media player events. | 169 // Listener object that listens to all the media player events. |
167 MediaPlayerListener listener_; | 170 MediaPlayerListener listener_; |
168 | 171 |
169 friend class MediaPlayerListener; | 172 friend class MediaPlayerListener; |
170 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); | 173 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); |
171 }; | 174 }; |
172 | 175 |
173 } // namespace media | 176 } // namespace media |
174 | 177 |
175 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 178 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
OLD | NEW |