| 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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 base::Lock current_frame_lock_; | 346 base::Lock current_frame_lock_; |
| 347 | 347 |
| 348 base::ThreadChecker main_thread_checker_; | 348 base::ThreadChecker main_thread_checker_; |
| 349 | 349 |
| 350 // Message loop for media thread. | 350 // Message loop for media thread. |
| 351 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; | 351 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; |
| 352 | 352 |
| 353 // URL of the media file to be fetched. | 353 // URL of the media file to be fetched. |
| 354 GURL url_; | 354 GURL url_; |
| 355 | 355 |
| 356 // URL of the media file after |media_info_loader_| resolves all the |
| 357 // redirections. |
| 358 GURL redirected_url_; |
| 359 |
| 356 // Media duration. | 360 // Media duration. |
| 357 base::TimeDelta duration_; | 361 base::TimeDelta duration_; |
| 358 | 362 |
| 359 // Flag to remember if we have a trusted duration_ value provided by | 363 // Flag to remember if we have a trusted duration_ value provided by |
| 360 // MediaSourceDelegate notifying OnDurationChanged(). In this case, ignore | 364 // MediaSourceDelegate notifying OnDurationChanged(). In this case, ignore |
| 361 // any subsequent duration value passed to OnMediaMetadataChange(). | 365 // any subsequent duration value passed to OnMediaMetadataChange(). |
| 362 bool ignore_metadata_duration_change_; | 366 bool ignore_metadata_duration_change_; |
| 363 | 367 |
| 364 // Seek gets pending if another seek is in progress. Only last pending seek | 368 // Seek gets pending if another seek is in progress. Only last pending seek |
| 365 // will have effect. | 369 // will have effect. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 491 |
| 488 // NOTE: Weak pointers must be invalidated before all other member variables. | 492 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 489 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 493 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 490 | 494 |
| 491 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 495 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 492 }; | 496 }; |
| 493 | 497 |
| 494 } // namespace content | 498 } // namespace content |
| 495 | 499 |
| 496 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 500 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |