| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 bool can_pause_; | 170 bool can_pause_; |
| 171 bool can_seek_forward_; | 171 bool can_seek_forward_; |
| 172 bool can_seek_backward_; | 172 bool can_seek_backward_; |
| 173 | 173 |
| 174 // Cookies for |url_|. | 174 // Cookies for |url_|. |
| 175 std::string cookies_; | 175 std::string cookies_; |
| 176 | 176 |
| 177 // Java MediaPlayerBridge instance. | 177 // Java MediaPlayerBridge instance. |
| 178 base::android::ScopedJavaGlobalRef<jobject> j_media_player_bridge_; | 178 base::android::ScopedJavaGlobalRef<jobject> j_media_player_bridge_; |
| 179 | 179 |
| 180 base::RepeatingTimer<MediaPlayerBridge> time_update_timer_; | 180 base::RepeatingTimer time_update_timer_; |
| 181 | 181 |
| 182 // Volume of playback. | 182 // Volume of playback. |
| 183 double volume_; | 183 double volume_; |
| 184 | 184 |
| 185 // Whether user credentials are allowed to be passed. | 185 // Whether user credentials are allowed to be passed. |
| 186 bool allow_credentials_; | 186 bool allow_credentials_; |
| 187 | 187 |
| 188 // NOTE: Weak pointers must be invalidated before all other member variables. | 188 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 189 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; | 189 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); | 191 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace media | 194 } // namespace media |
| 195 | 195 |
| 196 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 196 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
| OLD | NEW |