| 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 <string> | 10 #include <string> |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void OnPipelineError(PipelineStatus error); | 187 void OnPipelineError(PipelineStatus error); |
| 188 void OnPipelineMetadata(PipelineMetadata metadata); | 188 void OnPipelineMetadata(PipelineMetadata metadata); |
| 189 void OnPipelineBufferingStateChanged(BufferingState buffering_state); | 189 void OnPipelineBufferingStateChanged(BufferingState buffering_state); |
| 190 void OnDemuxerOpened(); | 190 void OnDemuxerOpened(); |
| 191 void OnAddTextTrack(const TextTrackConfig& config, | 191 void OnAddTextTrack(const TextTrackConfig& config, |
| 192 const AddTextTrackDoneCB& done_cb); | 192 const AddTextTrackDoneCB& done_cb); |
| 193 | 193 |
| 194 // WebMediaPlayerDelegate::Observer implementation. | 194 // WebMediaPlayerDelegate::Observer implementation. |
| 195 void OnHidden() override; | 195 void OnHidden() override; |
| 196 void OnShown() override; | 196 void OnShown() override; |
| 197 void OnPlay() override; |
| 198 void OnPause() override; |
| 199 void OnVolumeMultiplierUpdate(double multiplier) override; |
| 197 | 200 |
| 198 #if defined(OS_ANDROID) // WMPI_CAST | 201 #if defined(OS_ANDROID) // WMPI_CAST |
| 199 bool isRemote() const override; | 202 bool isRemote() const override; |
| 200 void requestRemotePlayback() override; | 203 void requestRemotePlayback() override; |
| 201 void requestRemotePlaybackControl() override; | 204 void requestRemotePlaybackControl() override; |
| 202 | 205 |
| 203 void SetMediaPlayerManager( | 206 void SetMediaPlayerManager( |
| 204 RendererMediaPlayerManagerInterface* media_player_manager); | 207 RendererMediaPlayerManagerInterface* media_player_manager); |
| 205 void OnRemotePlaybackEnded(); | 208 void OnRemotePlaybackEnded(); |
| 206 void OnDisconnectedFromRemoteDevice(double t); | 209 void OnDisconnectedFromRemoteDevice(double t); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 430 |
| 428 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 431 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; |
| 429 | 432 |
| 430 // Whether a CDM has been successfully attached. | 433 // Whether a CDM has been successfully attached. |
| 431 bool is_cdm_attached_; | 434 bool is_cdm_attached_; |
| 432 | 435 |
| 433 #if defined(OS_ANDROID) // WMPI_CAST | 436 #if defined(OS_ANDROID) // WMPI_CAST |
| 434 WebMediaPlayerCast cast_impl_; | 437 WebMediaPlayerCast cast_impl_; |
| 435 #endif | 438 #endif |
| 436 | 439 |
| 440 double volume_; |
| 441 double volume_multiplier_; |
| 442 |
| 437 scoped_ptr<RendererFactory> renderer_factory_; | 443 scoped_ptr<RendererFactory> renderer_factory_; |
| 438 | 444 |
| 439 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 445 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 440 }; | 446 }; |
| 441 | 447 |
| 442 } // namespace media | 448 } // namespace media |
| 443 | 449 |
| 444 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 450 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |