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_MEDIA_LOG_EVENT_H_ | 5 #ifndef MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
6 #define MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 6 #define MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // The extents of the sliding buffer have changed. | 66 // The extents of the sliding buffer have changed. |
67 // params: "buffer_start": <first buffered byte>. | 67 // params: "buffer_start": <first buffered byte>. |
68 // "buffer_current": <current offset>. | 68 // "buffer_current": <current offset>. |
69 // "buffer_end": <last buffered byte>. | 69 // "buffer_end": <last buffered byte>. |
70 BUFFERED_EXTENTS_CHANGED, | 70 BUFFERED_EXTENTS_CHANGED, |
71 | 71 |
72 // Errors reported by Media Source Extensions code. | 72 // Errors reported by Media Source Extensions code. |
73 MEDIA_SOURCE_ERROR, | 73 MEDIA_SOURCE_ERROR, |
74 // params: "error": Error string describing the error detected. | 74 // params: "error": Error string describing the error detected. |
| 75 |
| 76 // Statistics for pipeline. |
| 77 // params: "decoded_audio_bytes": <decoded audio bytes of the video> |
| 78 // "decoded_video_bytes": <decoded video bytes of the video> |
| 79 // "decoded_video_frames": <decoded video frames of the video> |
| 80 // "dropped_video_frames": <dropped video frames of the video> |
| 81 PIPELINE_STATISTICS_CHANGED, |
75 }; | 82 }; |
76 | 83 |
77 int32 id; | 84 int32 id; |
78 Type type; | 85 Type type; |
79 base::DictionaryValue params; | 86 base::DictionaryValue params; |
80 base::Time time; | 87 base::Time time; |
81 }; | 88 }; |
82 | 89 |
83 } // namespace media | 90 } // namespace media |
84 | 91 |
85 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 92 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
OLD | NEW |