OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_H_ |
6 #define MEDIA_BASE_PIPELINE_H_ | 6 #define MEDIA_BASE_PIPELINE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 // Return true if loading progress has been made since the last time this | 163 // Return true if loading progress has been made since the last time this |
164 // method was called. | 164 // method was called. |
165 virtual bool DidLoadingProgress() = 0; | 165 virtual bool DidLoadingProgress() = 0; |
166 | 166 |
167 // Gets the current pipeline statistics. | 167 // Gets the current pipeline statistics. |
168 virtual PipelineStatistics GetStatistics() const = 0; | 168 virtual PipelineStatistics GetStatistics() const = 0; |
169 | 169 |
170 virtual void SetCdm(CdmContext* cdm_context, | 170 virtual void SetCdm(CdmContext* cdm_context, |
171 const CdmAttachedCB& cdm_attached_cb) = 0; | 171 const CdmAttachedCB& cdm_attached_cb) = 0; |
| 172 |
| 173 // Get current video/audio configure. |
| 174 virtual VideoDecoderConfig GetVideoDecoderConfig() const = 0; |
| 175 virtual AudioDecoderConfig GetAudioDecoderConfig() const = 0; |
172 }; | 176 }; |
173 | 177 |
174 } // namespace media | 178 } // namespace media |
175 | 179 |
176 #endif // MEDIA_BASE_PIPELINE_H_ | 180 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |