| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_REMOTING_REMOTE_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ |
| 6 #define MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ | 6 #define MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, | 71 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, |
| 72 media::RendererClient* client, | 72 media::RendererClient* client, |
| 73 const PipelineStatusCB& init_cb) final; | 73 const PipelineStatusCB& init_cb) final; |
| 74 void SetCdm(CdmContext* cdm_context, | 74 void SetCdm(CdmContext* cdm_context, |
| 75 const CdmAttachedCB& cdm_attached_cb) final; | 75 const CdmAttachedCB& cdm_attached_cb) final; |
| 76 void Flush(const base::Closure& flush_cb) final; | 76 void Flush(const base::Closure& flush_cb) final; |
| 77 void StartPlayingFrom(base::TimeDelta time) final; | 77 void StartPlayingFrom(base::TimeDelta time) final; |
| 78 void SetPlaybackRate(double playback_rate) final; | 78 void SetPlaybackRate(double playback_rate) final; |
| 79 void SetVolume(float volume) final; | 79 void SetVolume(float volume) final; |
| 80 base::TimeDelta GetMediaTime() final; | 80 base::TimeDelta GetMediaTime() final; |
| 81 bool HasAudio() final; | |
| 82 bool HasVideo() final; | |
| 83 | 81 |
| 84 private: | 82 private: |
| 85 friend class RemoteRendererImplTest; | 83 friend class RemoteRendererImplTest; |
| 86 | 84 |
| 87 enum State { | 85 enum State { |
| 88 STATE_UNINITIALIZED, | 86 STATE_UNINITIALIZED, |
| 89 STATE_CREATE_PIPE, | 87 STATE_CREATE_PIPE, |
| 90 STATE_ACQUIRING, | 88 STATE_ACQUIRING, |
| 91 STATE_INITIALIZING, | 89 STATE_INITIALIZING, |
| 92 STATE_FLUSHING, | 90 STATE_FLUSHING, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 RemotingInterstitialUI interstitial_ui_; | 160 RemotingInterstitialUI interstitial_ui_; |
| 163 | 161 |
| 164 base::WeakPtrFactory<RemoteRendererImpl> weak_factory_; | 162 base::WeakPtrFactory<RemoteRendererImpl> weak_factory_; |
| 165 | 163 |
| 166 DISALLOW_COPY_AND_ASSIGN(RemoteRendererImpl); | 164 DISALLOW_COPY_AND_ASSIGN(RemoteRendererImpl); |
| 167 }; | 165 }; |
| 168 | 166 |
| 169 } // namespace media | 167 } // namespace media |
| 170 | 168 |
| 171 #endif // MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ | 169 #endif // MEDIA_REMOTING_REMOTE_RENDERER_IMPL_H_ |
| OLD | NEW |