OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |
6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |
7 #pragma once | |
8 | 7 |
9 #include "media/base/media_log.h" | 8 #include "media/base/media_log.h" |
10 | 9 |
11 namespace base { | 10 namespace base { |
12 class MessageLoopProxy; | 11 class MessageLoopProxy; |
13 } | 12 } |
14 | 13 |
15 // RenderMediaLog is an implementation of MediaLog that passes all events to the | 14 // RenderMediaLog is an implementation of MediaLog that passes all events to the |
16 // browser process. | 15 // browser process. |
17 class RenderMediaLog : public media::MediaLog { | 16 class RenderMediaLog : public media::MediaLog { |
18 public: | 17 public: |
19 RenderMediaLog(); | 18 RenderMediaLog(); |
20 | 19 |
21 // MediaLog implementation. | 20 // MediaLog implementation. |
22 virtual void AddEvent(scoped_ptr<media::MediaLogEvent> event) OVERRIDE; | 21 virtual void AddEvent(scoped_ptr<media::MediaLogEvent> event) OVERRIDE; |
23 | 22 |
24 private: | 23 private: |
25 virtual ~RenderMediaLog(); | 24 virtual ~RenderMediaLog(); |
26 | 25 |
27 scoped_refptr<base::MessageLoopProxy> render_loop_; | 26 scoped_refptr<base::MessageLoopProxy> render_loop_; |
28 | 27 |
29 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); | 28 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); |
30 }; | 29 }; |
31 | 30 |
32 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ | 31 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |
OLD | NEW |