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 WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 #include "media/base/pipeline.h" | 12 #include "media/base/pipeline.h" |
13 #include "media/filters/chunk_demuxer_client.h" | 13 #include "media/filters/chunk_demuxer_client.h" |
14 #include "webkit/media/web_data_source.h" | 14 #include "webkit/media/web_data_source.h" |
15 | 15 |
16 class MessageLoop; | 16 class MessageLoop; |
17 class SkCanvas; | 17 class SkCanvas; |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 class Rect; | 20 class Rect; |
21 } | 21 } |
22 | 22 |
| 23 namespace media { |
| 24 class VideoFrame; |
| 25 } |
| 26 |
23 namespace webkit_media { | 27 namespace webkit_media { |
24 | 28 |
25 class WebMediaPlayerImpl; | 29 class WebMediaPlayerImpl; |
26 class VideoRendererImpl; | 30 class VideoRendererImpl; |
27 | 31 |
28 // Acts as a thread proxy between the various threads used for multimedia and | 32 // Acts as a thread proxy between the various threads used for multimedia and |
29 // the render thread that WebMediaPlayerImpl is running on. | 33 // the render thread that WebMediaPlayerImpl is running on. |
30 class WebMediaPlayerProxy | 34 class WebMediaPlayerProxy |
31 : public base::RefCountedThreadSafe<WebMediaPlayerProxy>, | 35 : public base::RefCountedThreadSafe<WebMediaPlayerProxy>, |
32 public media::ChunkDemuxerClient { | 36 public media::ChunkDemuxerClient { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 int outstanding_repaints_; | 114 int outstanding_repaints_; |
111 | 115 |
112 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 116 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
113 | 117 |
114 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); | 118 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); |
115 }; | 119 }; |
116 | 120 |
117 } // namespace webkit_media | 121 } // namespace webkit_media |
118 | 122 |
119 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 123 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
OLD | NEW |