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