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 #include <stdint.h> |
| 11 |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. | 16 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. |
15 // Logged to UMA, so never reuse a value, always add new/greater ones! | 17 // Logged to UMA, so never reuse a value, always add new/greater ones! |
16 // TODO(vrk/scherkus): Trim the unused status codes. (crbug.com/126070) | 18 // TODO(vrk/scherkus): Trim the unused status codes. (crbug.com/126070) |
17 enum PipelineStatus { | 19 enum PipelineStatus { |
18 PIPELINE_OK = 0, | 20 PIPELINE_OK = 0, |
19 PIPELINE_ERROR_URL_NOT_FOUND = 1, | 21 PIPELINE_ERROR_URL_NOT_FOUND = 1, |
(...skipping 27 matching lines...) Expand all Loading... |
47 int64_t video_memory_usage = 0; | 49 int64_t video_memory_usage = 0; |
48 }; | 50 }; |
49 | 51 |
50 // Used for updating pipeline statistics; the passed value should be a delta | 52 // Used for updating pipeline statistics; the passed value should be a delta |
51 // of all attributes since the last update. | 53 // of all attributes since the last update. |
52 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; | 54 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; |
53 | 55 |
54 } // namespace media | 56 } // namespace media |
55 | 57 |
56 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 58 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
OLD | NEW |