| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 float GetVolume() const override; | 103 float GetVolume() const override; |
| 104 void SetVolume(float volume) override; | 104 void SetVolume(float volume) override; |
| 105 base::TimeDelta GetMediaTime() const override; | 105 base::TimeDelta GetMediaTime() const override; |
| 106 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; | 106 Ranges<base::TimeDelta> GetBufferedTimeRanges() const override; |
| 107 base::TimeDelta GetMediaDuration() const override; | 107 base::TimeDelta GetMediaDuration() const override; |
| 108 bool DidLoadingProgress() override; | 108 bool DidLoadingProgress() override; |
| 109 PipelineStatistics GetStatistics() const override; | 109 PipelineStatistics GetStatistics() const override; |
| 110 void SetCdm(CdmContext* cdm_context, | 110 void SetCdm(CdmContext* cdm_context, |
| 111 const CdmAttachedCB& cdm_attached_cb) override; | 111 const CdmAttachedCB& cdm_attached_cb) override; |
| 112 | 112 |
| 113 bool CanSuspend() const; |
| 114 |
| 113 private: | 115 private: |
| 114 friend class MediaLog; | 116 friend class MediaLog; |
| 115 friend class PipelineImplTest; | 117 friend class PipelineImplTest; |
| 116 | 118 |
| 117 // Pipeline states, as described above. | 119 // Pipeline states, as described above. |
| 118 enum State { | 120 enum State { |
| 119 kCreated, | 121 kCreated, |
| 120 kInitDemuxer, | 122 kInitDemuxer, |
| 121 kInitRenderer, | 123 kInitRenderer, |
| 122 kSeeking, | 124 kSeeking, |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // Declared last so that weak pointers will be invalidated before all other | 340 // Declared last so that weak pointers will be invalidated before all other |
| 339 // member variables. | 341 // member variables. |
| 340 base::WeakPtrFactory<PipelineImpl> weak_factory_; | 342 base::WeakPtrFactory<PipelineImpl> weak_factory_; |
| 341 | 343 |
| 342 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 344 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 343 }; | 345 }; |
| 344 | 346 |
| 345 } // namespace media | 347 } // namespace media |
| 346 | 348 |
| 347 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 349 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |