| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // be called with an error type. | 110 // be called with an error type. |
| 111 void Prepare(); | 111 void Prepare(); |
| 112 | 112 |
| 113 long start_position_millis_; | 113 long start_position_millis_; |
| 114 MediaPlayerAndroid* local_player_; | 114 MediaPlayerAndroid* local_player_; |
| 115 bool in_use_; | 115 bool in_use_; |
| 116 bool prepared_; | 116 bool prepared_; |
| 117 bool pending_play_; | 117 bool pending_play_; |
| 118 int width_; | 118 int width_; |
| 119 int height_; | 119 int height_; |
| 120 base::RepeatingTimer<RemoteMediaPlayerBridge> time_update_timer_; | 120 base::RepeatingTimer time_update_timer_; |
| 121 base::TimeDelta duration_; | 121 base::TimeDelta duration_; |
| 122 bool should_seek_on_prepare_; | 122 bool should_seek_on_prepare_; |
| 123 base::TimeDelta pending_seek_; | 123 base::TimeDelta pending_seek_; |
| 124 | 124 |
| 125 // Hide url log from media player. | 125 // Hide url log from media player. |
| 126 bool hide_url_log_; | 126 bool hide_url_log_; |
| 127 | 127 |
| 128 // Volume of playback. | 128 // Volume of playback. |
| 129 double volume_; | 129 double volume_; |
| 130 | 130 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 145 | 145 |
| 146 // NOTE: Weak pointers must be invalidated before all other member variables. | 146 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 147 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; | 147 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); | 149 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace remote_media | 152 } // namespace remote_media |
| 153 | 153 |
| 154 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 154 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| OLD | NEW |