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

Unified Diff: content/renderer/media/content_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: Much cleanup and making MediaLog thread safe. 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/content_media_log.h
diff --git a/content/renderer/media/content_media_log.h b/content/renderer/media/content_media_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..661a3ba762028301fe77dde7cbe5453c52539a20
--- /dev/null
+++ b/content/renderer/media/content_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_CONTENT_MEDIA_LOG_H_
+#define CONTENT_RENDERER_MEDIA_CONTENT_MEDIA_LOG_H_
+#pragma once
+
+#include "media/base/media_log.h"
+
+class MessageLoop;
+
+// ContentMediaLog is an implementation of MediaLog that hands off all events
+// to MediaLogHost via IPC.
+class ContentMediaLog : public media::MediaLog {
jam 2011/07/29 16:08:55 we don't name any classes starting with "Content".
Scott Franklin 2011/07/29 22:30:25 Done.
+public:
+ ContentMediaLog();
+
+ // MediaLog implementation.
+ virtual void AddEvent(Event* event);
+
+private:
+ virtual ~ContentMediaLog();
+
+ MessageLoop* render_loop_;
+
+ DISALLOW_COPY_AND_ASSIGN(ContentMediaLog);
+};
+
+#endif // CONTENT_RENDERER_MEDIA_CONTENT_MEDIA_LOG_H_

Powered by Google App Engine
This is Rietveld 408576698