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

Unified Diff: content/renderer/media/render_media_log.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: Responding to feedback. 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: content/renderer/media/render_media_log.h
diff --git a/content/renderer/media/render_media_log.h b/content/renderer/media/render_media_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..e87560d8346cd2925587cd7438ac1c6c339228c7
--- /dev/null
+++ b/content/renderer/media/render_media_log.h
@@ -0,0 +1,30 @@
+// 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 CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
+#define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
+#pragma once
+
+#include "media/base/media_log.h"
+
+class MessageLoop;
+
+// RenderMediaLog is an implementation of MediaLog that passes all events to the
+// browser process.
+class RenderMediaLog : public media::MediaLog {
+public:
jam 2011/08/01 06:03:25 nit: spacing (and below)
Scott Franklin 2011/08/01 18:41:04 Done.
+ RenderMediaLog();
+
+ // MediaLog implementation.
+ virtual void AddEvent(media::MediaLogEvent* event);
+
+private:
+ virtual ~RenderMediaLog();
+
+ MessageLoop* render_loop_;
+
+ DISALLOW_COPY_AND_ASSIGN(RenderMediaLog);
+};
+
+#endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_

Powered by Google App Engine
This is Rietveld 408576698