| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_MEDIA_LOG_EVENT_H_ | |
| 6 #define MEDIA_BASE_MEDIA_LOG_EVENT_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/time.h" | |
| 10 #include "base/values.h" | |
| 11 | |
| 12 namespace media { | |
| 13 | |
| 14 struct MediaLogEvent { | |
| 15 enum Type { | |
| 16 // A media player is being created or destroyed. | |
| 17 // params: none. | |
| 18 CREATING, | |
| 19 DESTROYING, | |
| 20 | |
| 21 // A media player is loading a resource. | |
| 22 // params: "url": <URL of the resource>. | |
| 23 LOAD, | |
| 24 | |
| 25 // A media player has been told to play or pause. | |
| 26 // params: none. | |
| 27 PLAY, | |
| 28 PAUSE, | |
| 29 }; | |
| 30 | |
| 31 int32 id; | |
| 32 Type type; | |
| 33 base::DictionaryValue params; | |
| 34 base::Time time; | |
| 35 }; | |
| 36 | |
| 37 } // namespace media | |
| 38 | |
| 39 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | |
| OLD | NEW |