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..62866e81c4cca0a25148f6cc0cb5006ce947ec34 |
--- /dev/null |
+++ b/content/renderer/media/render_media_log.h |
@@ -0,0 +1,32 @@ |
+// 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" |
+ |
+namespace base { |
+class MessageLoopProxy; |
+} |
+ |
+// RenderMediaLog is an implementation of MediaLog that passes all events to the |
+// browser process. |
+class RenderMediaLog : public media::MediaLog { |
+ public: |
+ RenderMediaLog(); |
+ |
+ // MediaLog implementation. |
+ virtual void AddEvent(media::MediaLogEvent* event); |
+ |
+ private: |
+ virtual ~RenderMediaLog(); |
+ |
+ scoped_refptr<base::MessageLoopProxy> render_loop_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); |
+}; |
+ |
+#endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |