OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The pipeline is the public API clients use for playing back media. Clients | 5 // The pipeline is the public API clients use for playing back media. Clients |
6 // provide a filter collection containing the filters they want the pipeline to | 6 // provide a filter collection containing the filters they want the pipeline to |
7 // use to render media. | 7 // use to render media. |
8 | 8 |
9 #ifndef MEDIA_BASE_PIPELINE_H_ | 9 #ifndef MEDIA_BASE_PIPELINE_H_ |
10 #define MEDIA_BASE_PIPELINE_H_ | 10 #define MEDIA_BASE_PIPELINE_H_ |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Gets the natural size of the video output in pixel units. If there is no | 157 // Gets the natural size of the video output in pixel units. If there is no |
158 // video or the video has not been rendered yet, the width and height will | 158 // video or the video has not been rendered yet, the width and height will |
159 // be 0. | 159 // be 0. |
160 virtual void GetNaturalVideoSize(gfx::Size* out_size) const = 0; | 160 virtual void GetNaturalVideoSize(gfx::Size* out_size) const = 0; |
161 | 161 |
162 // If this method returns true, that means the data source is a streaming | 162 // If this method returns true, that means the data source is a streaming |
163 // data source. Seeking may not be possible. | 163 // data source. Seeking may not be possible. |
164 virtual bool IsStreaming() const = 0; | 164 virtual bool IsStreaming() const = 0; |
165 | 165 |
166 // If this method returns true, that means the data source has fully loaded | 166 // If this method returns true, that means the data source is local and |
167 // the media and that the network is no longer needed. | 167 // the network is not needed. |
168 virtual bool IsLoaded() const = 0; | 168 virtual bool IsLocalSource() const = 0; |
169 | 169 |
170 // Gets the current pipeline statistics. | 170 // Gets the current pipeline statistics. |
171 virtual PipelineStatistics GetStatistics() const = 0; | 171 virtual PipelineStatistics GetStatistics() const = 0; |
172 | 172 |
173 protected: | 173 protected: |
174 // Only allow ourselves to be deleted by reference counting. | 174 // Only allow ourselves to be deleted by reference counting. |
175 friend class base::RefCountedThreadSafe<Pipeline>; | 175 friend class base::RefCountedThreadSafe<Pipeline>; |
176 virtual ~Pipeline() {} | 176 virtual ~Pipeline() {} |
177 }; | 177 }; |
178 | 178 |
179 } // namespace media | 179 } // namespace media |
180 | 180 |
181 #endif // MEDIA_BASE_PIPELINE_H_ | 181 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |