blob: 0c8e3da0408b7fb8fea74dd3190cf8636fb15f83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// 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,
// The extents of the sliding buffer have changed.
// params: "buffer_start": <first buffered byte>.
// "buffer_current": <current offset>.
// "buffer_end": <last buffered byte>.
BUFFERED_EXTENTS_CHANGED,
};
int32 id;
Type type;
base::DictionaryValue params;
base::Time time;
};
} // namespace media
#endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_
|