| 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; | 
| 114 | 118 | 
| 115  private: | 119  private: | 
| 116   friend class MediaLog; | 120   friend class MediaLog; | 
| 117   friend class PipelineImplTest; | 121   friend class PipelineImplTest; | 
| 118 | 122 | 
| 119   // Pipeline states, as described above. | 123   // Pipeline states, as described above. | 
| 120   enum State { | 124   enum State { | 
| 121     kCreated, | 125     kCreated, | 
| 122     kInitDemuxer, | 126     kInitDemuxer, | 
| 123     kInitRenderer, | 127     kInitRenderer, | 
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 337   // Declared last so that weak pointers will be invalidated before all other | 341   // Declared last so that weak pointers will be invalidated before all other | 
| 338   // member variables. | 342   // member variables. | 
| 339   base::WeakPtrFactory<PipelineImpl> weak_factory_; | 343   base::WeakPtrFactory<PipelineImpl> weak_factory_; | 
| 340 | 344 | 
| 341   DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 345   DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 
| 342 }; | 346 }; | 
| 343 | 347 | 
| 344 }  // namespace media | 348 }  // namespace media | 
| 345 | 349 | 
| 346 #endif  // MEDIA_BASE_PIPELINE_IMPL_H_ | 350 #endif  // MEDIA_BASE_PIPELINE_IMPL_H_ | 
| OLD | NEW | 
|---|