summaryrefslogtreecommitdiffstats
path: root/media/base/media_log_event.h
diff options
context:
space:
mode:
authorscottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 23:26:40 +0000
committerscottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 23:26:40 +0000
commit090f7313473bb61b6b294f1bfbb3b05f9140dec3 (patch)
tree1b576c7618ac4f85a45ab7aa1237a3aff8597276 /media/base/media_log_event.h
parentd91b48f15b5e550f5e0ff3550d51ef8aeebdd2b1 (diff)
downloadchromium_src-090f7313473bb61b6b294f1bfbb3b05f9140dec3.zip
chromium_src-090f7313473bb61b6b294f1bfbb3b05f9140dec3.tar.gz
chromium_src-090f7313473bb61b6b294f1bfbb3b05f9140dec3.tar.bz2
Plumb media data from renderers up to MediaInternals in the browser process.
Relanding 95542. Reverted due to issue caused by 95496. BUG=none TEST=manually Review URL: http://codereview.chromium.org/7480032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95685 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_log_event.h')
-rw-r--r--media/base/media_log_event.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/media/base/media_log_event.h b/media/base/media_log_event.h
new file mode 100644
index 0000000..dd1735e
--- /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_