| Index: media/base/media_log_event.h
|
| diff --git a/media/base/media_log_event.h b/media/base/media_log_event.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd1735e27c920bab65e3785689cbe7c5dfb75ec6
|
| --- /dev/null
|
| +++ b/media/base/media_log_event.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_BASE_MEDIA_LOG_EVENT_H_
|
| +#define MEDIA_BASE_MEDIA_LOG_EVENT_H_
|
| +#pragma once
|
| +
|
| +#include "base/time.h"
|
| +#include "base/values.h"
|
| +
|
| +namespace media {
|
| +
|
| +struct MediaLogEvent {
|
| + enum Type {
|
| + // A media player is being created or destroyed.
|
| + // params: none.
|
| + CREATING,
|
| + DESTROYING,
|
| +
|
| + // A media player is loading a resource.
|
| + // params: "url": <URL of the resource>.
|
| + LOAD,
|
| +
|
| + // A media player has been told to play or pause.
|
| + // params: none.
|
| + PLAY,
|
| + PAUSE,
|
| + };
|
| +
|
| + int32 id;
|
| + Type type;
|
| + base::DictionaryValue params;
|
| + base::Time time;
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_
|
|
|