| 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void DataSourceInitialized(bool success); | 271 void DataSourceInitialized(bool success); |
| 272 | 272 |
| 273 // Called when the data source is downloading or paused. | 273 // Called when the data source is downloading or paused. |
| 274 void NotifyDownloading(bool is_downloading); | 274 void NotifyDownloading(bool is_downloading); |
| 275 | 275 |
| 276 // Called by SurfaceManager when a surface is created. | 276 // Called by SurfaceManager when a surface is created. |
| 277 void OnSurfaceCreated(int surface_id); | 277 void OnSurfaceCreated(int surface_id); |
| 278 | 278 |
| 279 // Called by GpuVideoDecoder on Android to request a surface to render to (if | 279 // Called by GpuVideoDecoder on Android to request a surface to render to (if |
| 280 // necessary). | 280 // necessary). |
| 281 void OnSurfaceRequested(const SurfaceCreatedCB& surface_created_cb); | 281 void OnSurfaceRequested(bool decoder_requires_restart_for_overlay, |
| 282 const SurfaceCreatedCB& surface_created_cb); |
| 282 | 283 |
| 283 // Creates a Renderer via the |renderer_factory_|. | 284 // Creates a Renderer via the |renderer_factory_|. |
| 284 std::unique_ptr<Renderer> CreateRenderer(); | 285 std::unique_ptr<Renderer> CreateRenderer(); |
| 285 | 286 |
| 286 // Finishes starting the pipeline due to a call to load(). | 287 // Finishes starting the pipeline due to a call to load(). |
| 287 void StartPipeline(); | 288 void StartPipeline(); |
| 288 | 289 |
| 289 // Helpers that set the network/ready state and notifies the client if | 290 // Helpers that set the network/ready state and notifies the client if |
| 290 // they've changed. | 291 // they've changed. |
| 291 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 292 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 | 566 |
| 566 // Monitors the player events. | 567 // Monitors the player events. |
| 567 base::WeakPtr<MediaObserver> observer_; | 568 base::WeakPtr<MediaObserver> observer_; |
| 568 | 569 |
| 569 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 570 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 570 }; | 571 }; |
| 571 | 572 |
| 572 } // namespace media | 573 } // namespace media |
| 573 | 574 |
| 574 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 575 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |