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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 bool InterceptMediaUrl( | 135 bool InterceptMediaUrl( |
136 const std::string& url, int* fd, int64* offset, int64* size); | 136 const std::string& url, int* fd, int64* offset, int64* size); |
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_ = base::TimeDelta::FromMilliseconds(-1); |
aberent
2014/10/20 14:55:55
Better in initializer of constructor. The coding s
dgn
2014/10/20 15:43:20
Done.
| |
146 | 146 |
147 // Url for playback. | 147 // Url for playback. |
148 GURL url_; | 148 GURL url_; |
149 | 149 |
150 // First party url for cookies. | 150 // First party url for cookies. |
151 GURL first_party_for_cookies_; | 151 GURL first_party_for_cookies_; |
152 | 152 |
153 // User agent string to be used for media player. | 153 // User agent string to be used for media player. |
154 const std::string user_agent_; | 154 const std::string user_agent_; |
155 | 155 |
(...skipping 26 matching lines...) Expand all Loading... | |
182 | 182 |
183 // NOTE: Weak pointers must be invalidated before all other member variables. | 183 // NOTE: Weak pointers must be invalidated before all other member variables. |
184 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; | 184 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); | 186 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace media | 189 } // namespace media |
190 | 190 |
191 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 191 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
OLD | NEW |