Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: media/base/android/media_player_bridge.h

Issue 654203005: Skip initial seek to 0 on fling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698