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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Whether the player is prepared for playback. | 138 // Whether the player is prepared for playback. |
139 bool prepared_; | 139 bool prepared_; |
140 | 140 |
141 // Pending play event while player is preparing. | 141 // Pending play event while player is preparing. |
142 bool pending_play_; | 142 bool pending_play_; |
143 | 143 |
144 // Pending seek time while player is preparing. | 144 // Pending seek time while player is preparing. |
145 base::TimeDelta pending_seek_; | 145 base::TimeDelta pending_seek_; |
146 | 146 |
| 147 // Whether a seek should be performed after preparing. |
| 148 bool should_seek_on_prepare_; |
| 149 |
147 // Url for playback. | 150 // Url for playback. |
148 GURL url_; | 151 GURL url_; |
149 | 152 |
150 // First party url for cookies. | 153 // First party url for cookies. |
151 GURL first_party_for_cookies_; | 154 GURL first_party_for_cookies_; |
152 | 155 |
153 // User agent string to be used for media player. | 156 // User agent string to be used for media player. |
154 const std::string user_agent_; | 157 const std::string user_agent_; |
155 | 158 |
156 // Hide url log from media player. | 159 // Hide url log from media player. |
(...skipping 25 matching lines...) Expand all Loading... |
182 | 185 |
183 // NOTE: Weak pointers must be invalidated before all other member variables. | 186 // NOTE: Weak pointers must be invalidated before all other member variables. |
184 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; | 187 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; |
185 | 188 |
186 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); | 189 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); |
187 }; | 190 }; |
188 | 191 |
189 } // namespace media | 192 } // namespace media |
190 | 193 |
191 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 194 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
OLD | NEW |