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/time.h" | 8 #include "base/time/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Text stream playback has ended. | 76 // Text stream playback has ended. |
77 TEXT_ENDED, | 77 TEXT_ENDED, |
78 | 78 |
79 // The extents of the sliding buffer have changed. | 79 // The extents of the sliding buffer have changed. |
80 // params: "buffer_start": <first buffered byte>. | 80 // params: "buffer_start": <first buffered byte>. |
81 // "buffer_current": <current offset>. | 81 // "buffer_current": <current offset>. |
82 // "buffer_end": <last buffered byte>. | 82 // "buffer_end": <last buffered byte>. |
83 BUFFERED_EXTENTS_CHANGED, | 83 BUFFERED_EXTENTS_CHANGED, |
84 | 84 |
85 // Errors reported by Media Source Extensions code. | 85 // Error log reported by media code such as details of an MSE parse error. |
86 MEDIA_SOURCE_ERROR, | 86 MEDIA_ERROR_LOG_ENTRY, |
87 // params: "error": Error string describing the error detected. | 87 // params: "error": Error string describing the error detected. |
88 | 88 |
| 89 // Informative log reported by media code. |
| 90 MEDIA_INFO_LOG_ENTRY, |
| 91 // params: "info": String with details of an informative log entry. |
| 92 |
| 93 // Debug log reported by media code. |
| 94 MEDIA_DEBUG_LOG_ENTRY, |
| 95 // params: "debug": String with details of a debug log entry. |
| 96 |
89 // A property has changed without any special event occurring. | 97 // A property has changed without any special event occurring. |
90 PROPERTY_CHANGE, | 98 PROPERTY_CHANGE, |
91 | 99 |
92 TYPE_LAST = PROPERTY_CHANGE | 100 TYPE_LAST = PROPERTY_CHANGE |
93 }; | 101 }; |
94 | 102 |
95 int32 id; | 103 int32 id; |
96 Type type; | 104 Type type; |
97 base::DictionaryValue params; | 105 base::DictionaryValue params; |
98 base::TimeTicks time; | 106 base::TimeTicks time; |
99 }; | 107 }; |
100 | 108 |
101 } // namespace media | 109 } // namespace media |
102 | 110 |
103 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 111 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
OLD | NEW |