| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BASE_PIPELINE_IMPL_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ |
| 6 #define MEDIA_BASE_PIPELINE_IMPL_H_ | 6 #define MEDIA_BASE_PIPELINE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const PipelineStatusCB& seek_cb) override; | 104 const PipelineStatusCB& seek_cb) override; |
| 105 float GetVolume() const override; | 105 float GetVolume() const override; |
| 106 void SetVolume(float volume) override; | 106 void SetVolume(float volume) override; |
| 107 base::TimeDelta GetMediaTime() const override; | 107 base::TimeDelta GetMediaTime() const override; |
| 108 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; | 108 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; |
| 109 base::TimeDelta GetMediaDuration() const override; | 109 base::TimeDelta GetMediaDuration() const override; |
| 110 bool DidLoadingProgress() override; | 110 bool DidLoadingProgress() override; |
| 111 PipelineStatistics GetStatistics() const override; | 111 PipelineStatistics GetStatistics() const override; |
| 112 void SetCdm(CdmContext* cdm_context, | 112 void SetCdm(CdmContext* cdm_context, |
| 113 const CdmAttachedCB& cdm_attached_cb) override; | 113 const CdmAttachedCB& cdm_attached_cb) override; |
| 114 void OnEnabledAudioStreamsChanged( | |
| 115 const std::vector<const DemuxerStream*>& enabledAudioStreams) override; | |
| 116 void OnSelectedVideoStreamChanged( | |
| 117 const DemuxerStream* selectedVideoStream) override; | |
| 118 | 114 |
| 119 private: | 115 private: |
| 120 friend class MediaLog; | 116 friend class MediaLog; |
| 121 friend class PipelineImplTest; | 117 friend class PipelineImplTest; |
| 122 | 118 |
| 123 // Pipeline states, as described above. | 119 // Pipeline states, as described above. |
| 124 enum State { | 120 enum State { |
| 125 kCreated, | 121 kCreated, |
| 126 kInitDemuxer, | 122 kInitDemuxer, |
| 127 kInitRenderer, | 123 kInitRenderer, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // Declared last so that weak pointers will be invalidated before all other | 337 // Declared last so that weak pointers will be invalidated before all other |
| 342 // member variables. | 338 // member variables. |
| 343 base::WeakPtrFactory<PipelineImpl> weak_factory_; | 339 base::WeakPtrFactory<PipelineImpl> weak_factory_; |
| 344 | 340 |
| 345 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 341 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 346 }; | 342 }; |
| 347 | 343 |
| 348 } // namespace media | 344 } // namespace media |
| 349 | 345 |
| 350 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 346 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |