Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: media/base/media_log_event.h

Issue 7480032: Plumb media data from renderers up to MediaInternals in the browser process. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: s/MessageLoop/MessageLoopProxy Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..5ed77762bd8bdfb2e578aa12787937584c06446b
--- /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.
+ CREATE,
+ DESTROY,
+
+ // 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_

Powered by Google App Engine
This is Rietveld 408576698