Chromium Code Reviews| 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 #ifndef MEDIA_BASE_PIPELINE_STATUS_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_STATUS_H_ |
| 6 #define MEDIA_BASE_PIPELINE_STATUS_H_ | 6 #define MEDIA_BASE_PIPELINE_STATUS_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | |
| 8 #include "base/callback_old.h" | 9 #include "base/callback_old.h" |
| 9 | 10 |
| 10 namespace media { | 11 namespace media { |
| 11 | 12 |
| 12 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. | 13 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. |
| 13 enum PipelineStatus { | 14 enum PipelineStatus { |
| 14 PIPELINE_OK, | 15 PIPELINE_OK, |
| 15 PIPELINE_ERROR_URL_NOT_FOUND, | 16 PIPELINE_ERROR_URL_NOT_FOUND, |
| 16 PIPELINE_ERROR_NETWORK, | 17 PIPELINE_ERROR_NETWORK, |
| 17 PIPELINE_ERROR_DECODE, | 18 PIPELINE_ERROR_DECODE, |
| 18 PIPELINE_ERROR_ABORT, | 19 PIPELINE_ERROR_ABORT, |
| 19 PIPELINE_ERROR_INITIALIZATION_FAILED, | 20 PIPELINE_ERROR_INITIALIZATION_FAILED, |
| 20 PIPELINE_ERROR_REQUIRED_FILTER_MISSING, | 21 PIPELINE_ERROR_REQUIRED_FILTER_MISSING, |
| 21 PIPELINE_ERROR_OUT_OF_MEMORY, | 22 PIPELINE_ERROR_OUT_OF_MEMORY, |
| 22 PIPELINE_ERROR_COULD_NOT_RENDER, | 23 PIPELINE_ERROR_COULD_NOT_RENDER, |
| 23 PIPELINE_ERROR_READ, | 24 PIPELINE_ERROR_READ, |
| 24 PIPELINE_ERROR_AUDIO_HARDWARE, | 25 PIPELINE_ERROR_AUDIO_HARDWARE, |
| 25 PIPELINE_ERROR_OPERATION_PENDING, | 26 PIPELINE_ERROR_OPERATION_PENDING, |
| 26 PIPELINE_ERROR_INVALID_STATE, | 27 PIPELINE_ERROR_INVALID_STATE, |
| 27 // Demuxer related errors. | 28 // Demuxer related errors. |
| 28 DEMUXER_ERROR_COULD_NOT_OPEN, | 29 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 29 DEMUXER_ERROR_COULD_NOT_PARSE, | 30 DEMUXER_ERROR_COULD_NOT_PARSE, |
| 30 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, | 31 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, |
| 31 DEMUXER_ERROR_COULD_NOT_CREATE_THREAD, | 32 DEMUXER_ERROR_COULD_NOT_CREATE_THREAD, |
| 32 // DataSourceFactory errors. | 33 // DataSourceFactory errors. |
| 33 DATASOURCE_ERROR_URL_NOT_SUPPORTED, | 34 DATASOURCE_ERROR_URL_NOT_SUPPORTED, |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 typedef Callback1<media::PipelineStatus>::Type PipelineStatusCallback; | 37 typedef Callback1<media::PipelineStatus>::Type PipelineStatusCallback; |
| 38 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; | |
|
Ami GONE FROM CHROMIUM
2011/05/19 20:27:37
Does filters.h need a separate FilterStatusCB?
Use
acolwell GONE FROM CHROMIUM
2011/05/20 01:26:37
No.
| |
| 37 | 39 |
| 38 } // namespace media | 40 } // namespace media |
| 39 | 41 |
| 40 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 42 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
| OLD | NEW |