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 MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ | 5 #ifndef MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ |
6 #define MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ | 6 #define MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "media/filters/video_renderer_base.h" | 8 #include "media/filters/video_renderer_base.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 class NullVideoRenderer : public VideoRendererBase { | 12 class NullVideoRenderer : public VideoRendererBase { |
13 public: | 13 public: |
14 NullVideoRenderer(); | 14 NullVideoRenderer(); |
15 | 15 |
16 // VideoRendererBase implementation. | 16 // VideoRendererBase implementation. |
17 virtual bool OnInitialize(VideoDecoder* decoder); | 17 virtual bool OnInitialize(VideoDecoder* decoder) OVERRIDE; |
18 virtual void OnStop(const base::Closure& callback); | 18 virtual void OnStop(const base::Closure& callback) OVERRIDE; |
19 virtual void OnFrameAvailable(); | 19 virtual void OnFrameAvailable() OVERRIDE; |
20 | 20 |
21 private: | 21 private: |
22 // Only allow to be deleted by reference counting. | 22 // Only allow to be deleted by reference counting. |
23 friend class scoped_refptr<NullVideoRenderer>; | 23 friend class scoped_refptr<NullVideoRenderer>; |
24 virtual ~NullVideoRenderer(); | 24 virtual ~NullVideoRenderer(); |
25 | 25 |
26 DISALLOW_COPY_AND_ASSIGN(NullVideoRenderer); | 26 DISALLOW_COPY_AND_ASSIGN(NullVideoRenderer); |
27 }; | 27 }; |
28 | 28 |
29 } // namespace media | 29 } // namespace media |
30 | 30 |
31 #endif // MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ | 31 #endif // MEDIA_FILTERS_NULL_VIDEO_RENDERER_H_ |
OLD | NEW |