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 | 7 |
8 #include "media/base/media_log.h" | 8 #include "media/base/media_log.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 class MessageLoopProxy; | 11 class MessageLoopProxy; |
12 } | 12 } |
13 | 13 |
| 14 namespace content { |
| 15 |
14 // RenderMediaLog is an implementation of MediaLog that passes all events to the | 16 // RenderMediaLog is an implementation of MediaLog that passes all events to the |
15 // browser process. | 17 // browser process. |
16 class RenderMediaLog : public media::MediaLog { | 18 class RenderMediaLog : public media::MediaLog { |
17 public: | 19 public: |
18 RenderMediaLog(); | 20 RenderMediaLog(); |
19 | 21 |
20 // MediaLog implementation. | 22 // MediaLog implementation. |
21 virtual void AddEvent(scoped_ptr<media::MediaLogEvent> event) OVERRIDE; | 23 virtual void AddEvent(scoped_ptr<media::MediaLogEvent> event) OVERRIDE; |
22 | 24 |
23 private: | 25 private: |
24 virtual ~RenderMediaLog(); | 26 virtual ~RenderMediaLog(); |
25 | 27 |
26 scoped_refptr<base::MessageLoopProxy> render_loop_; | 28 scoped_refptr<base::MessageLoopProxy> render_loop_; |
27 | 29 |
28 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); | 30 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); |
29 }; | 31 }; |
30 | 32 |
| 33 } // namespace content |
| 34 |
31 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ | 35 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |
OLD | NEW |