| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // A media player has been told to play or pause. | 34 // A media player has been told to play or pause. |
| 35 // params: none. | 35 // params: none. |
| 36 PLAY, | 36 PLAY, |
| 37 PAUSE, | 37 PAUSE, |
| 38 | 38 |
| 39 // The state of PipelineImpl has changed. | 39 // The state of PipelineImpl has changed. |
| 40 // params: "pipeline_state": <string name of the state>. | 40 // params: "pipeline_state": <string name of the state>. |
| 41 PIPELINE_STATE_CHANGED, | 41 PIPELINE_STATE_CHANGED, |
| 42 | 42 |
| 43 // An error has occurred in the pipeline. |
| 44 // params: "pipeline_error": <string name of the error>. |
| 45 PIPELINE_ERROR, |
| 46 |
| 47 // The size of the video has been determined. |
| 48 // params: "width": <integral width of the video>. |
| 49 // "height": <integral height of the video>. |
| 50 VIDEO_SIZE_SET, |
| 51 |
| 52 // A property of the pipeline has been set by a filter. |
| 53 // These take a single parameter based upon the name of the event and of |
| 54 // the appropriate type. e.g. DURATION_SET: "duration" of type TimeDelta. |
| 55 DURATION_SET, |
| 56 TOTAL_BYTES_SET, |
| 57 STREAMING_SET, |
| 58 LOADED_SET, |
| 59 NETWORK_ACTIVITY_SET, |
| 60 |
| 61 // Playback has ended. |
| 62 // params: none. |
| 63 ENDED, |
| 64 |
| 65 // The audio renderer has been disabled. |
| 66 // params: none. |
| 67 AUDIO_RENDERER_DISABLED, |
| 68 |
| 43 // The extents of the sliding buffer have changed. | 69 // The extents of the sliding buffer have changed. |
| 44 // params: "buffer_start": <first buffered byte>. | 70 // params: "buffer_start": <first buffered byte>. |
| 45 // "buffer_current": <current offset>. | 71 // "buffer_current": <current offset>. |
| 46 // "buffer_end": <last buffered byte>. | 72 // "buffer_end": <last buffered byte>. |
| 47 BUFFERED_EXTENTS_CHANGED, | 73 BUFFERED_EXTENTS_CHANGED, |
| 48 }; | 74 }; |
| 49 | 75 |
| 50 int32 id; | 76 int32 id; |
| 51 Type type; | 77 Type type; |
| 52 base::DictionaryValue params; | 78 base::DictionaryValue params; |
| 53 base::Time time; | 79 base::Time time; |
| 54 }; | 80 }; |
| 55 | 81 |
| 56 } // namespace media | 82 } // namespace media |
| 57 | 83 |
| 58 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 84 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
| OLD | NEW |