| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 factory containing the filters they want the pipeline to | 6 // provide a filter factory 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 18 matching lines...) Expand all Loading... |
| 29 PIPELINE_ERROR_URL_NOT_FOUND, | 29 PIPELINE_ERROR_URL_NOT_FOUND, |
| 30 PIPELINE_ERROR_NETWORK, | 30 PIPELINE_ERROR_NETWORK, |
| 31 PIPELINE_ERROR_DECODE, | 31 PIPELINE_ERROR_DECODE, |
| 32 PIPELINE_ERROR_ABORT, | 32 PIPELINE_ERROR_ABORT, |
| 33 PIPELINE_ERROR_INITIALIZATION_FAILED, | 33 PIPELINE_ERROR_INITIALIZATION_FAILED, |
| 34 PIPELINE_ERROR_REQUIRED_FILTER_MISSING, | 34 PIPELINE_ERROR_REQUIRED_FILTER_MISSING, |
| 35 PIPELINE_ERROR_OUT_OF_MEMORY, | 35 PIPELINE_ERROR_OUT_OF_MEMORY, |
| 36 PIPELINE_ERROR_COULD_NOT_RENDER, | 36 PIPELINE_ERROR_COULD_NOT_RENDER, |
| 37 PIPELINE_ERROR_READ, | 37 PIPELINE_ERROR_READ, |
| 38 PIPELINE_ERROR_AUDIO_HARDWARE, | 38 PIPELINE_ERROR_AUDIO_HARDWARE, |
| 39 PIPELINE_ERROR_NO_DATA, | |
| 40 // Demuxer related errors. | 39 // Demuxer related errors. |
| 41 DEMUXER_ERROR_COULD_NOT_OPEN, | 40 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 42 DEMUXER_ERROR_COULD_NOT_PARSE, | 41 DEMUXER_ERROR_COULD_NOT_PARSE, |
| 43 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, | 42 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, |
| 44 DEMUXER_ERROR_COULD_NOT_CREATE_THREAD, | 43 DEMUXER_ERROR_COULD_NOT_CREATE_THREAD, |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 // Client-provided callbacks for various pipeline operations. Clients should | 46 // Client-provided callbacks for various pipeline operations. Clients should |
| 48 // inspect the Pipeline for errors. | 47 // inspect the Pipeline for errors. |
| 49 typedef Callback0::Type PipelineCallback; | 48 typedef Callback0::Type PipelineCallback; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 153 |
| 155 protected: | 154 protected: |
| 156 // Only allow ourselves to be deleted by reference counting. | 155 // Only allow ourselves to be deleted by reference counting. |
| 157 friend class base::RefCountedThreadSafe<Pipeline>; | 156 friend class base::RefCountedThreadSafe<Pipeline>; |
| 158 virtual ~Pipeline() {} | 157 virtual ~Pipeline() {} |
| 159 }; | 158 }; |
| 160 | 159 |
| 161 } // namespace media | 160 } // namespace media |
| 162 | 161 |
| 163 #endif // MEDIA_BASE_PIPELINE_H_ | 162 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |