| 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_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.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. | 12 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. |
| 13 enum PipelineStatus { | 13 enum PipelineStatus { |
| 14 PIPELINE_OK, | 14 PIPELINE_OK, |
| 15 PIPELINE_ERROR_URL_NOT_FOUND, | 15 PIPELINE_ERROR_URL_NOT_FOUND, |
| 16 PIPELINE_ERROR_NETWORK, | 16 PIPELINE_ERROR_NETWORK, |
| 17 PIPELINE_ERROR_DECODE, | 17 PIPELINE_ERROR_DECODE, |
| 18 PIPELINE_ERROR_DECRYPT, |
| 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. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 51 uint32 video_frames_decoded; | 52 uint32 video_frames_decoded; |
| 52 uint32 video_frames_dropped; | 53 uint32 video_frames_dropped; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 // Used for updating pipeline statistics. | 56 // Used for updating pipeline statistics. |
| 56 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; | 57 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; |
| 57 | 58 |
| 58 } // namespace media | 59 } // namespace media |
| 59 | 60 |
| 60 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 61 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
| OLD | NEW |