OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
6 // It contains PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl which is the actual media player pipeline, it glues |
7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
8 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl would creates multiple threads and access some public methods |
9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
10 // methods and members. | 10 // methods and members. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 53 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
54 #define WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 54 #define WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
55 | 55 |
56 #include "base/message_loop.h" | 56 #include "base/message_loop.h" |
57 #include "base/ref_counted.h" | 57 #include "base/ref_counted.h" |
58 #include "base/scoped_ptr.h" | 58 #include "base/scoped_ptr.h" |
59 #include "base/threading/thread.h" | 59 #include "base/threading/thread.h" |
60 #include "base/synchronization/lock.h" | 60 #include "base/synchronization/lock.h" |
61 #include "base/synchronization/waitable_event.h" | 61 #include "base/synchronization/waitable_event.h" |
62 #include "gfx/rect.h" | |
63 #include "gfx/size.h" | |
64 #include "media/base/filters.h" | 62 #include "media/base/filters.h" |
65 #include "media/base/message_loop_factory.h" | 63 #include "media/base/message_loop_factory.h" |
66 #include "media/base/pipeline.h" | 64 #include "media/base/pipeline.h" |
67 #include "skia/ext/platform_canvas.h" | 65 #include "skia/ext/platform_canvas.h" |
68 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" | 66 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" |
69 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" | 67 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" |
| 68 #include "ui/gfx/rect.h" |
| 69 #include "ui/gfx/size.h" |
70 | 70 |
71 class GURL; | 71 class GURL; |
72 | 72 |
73 namespace WebKit { | 73 namespace WebKit { |
74 class WebFrame; | 74 class WebFrame; |
75 } | 75 } |
76 | 76 |
77 namespace webkit_glue { | 77 namespace webkit_glue { |
78 | 78 |
79 class MediaResourceLoaderBridgeFactory; | 79 class MediaResourceLoaderBridgeFactory; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 #if WEBKIT_USING_CG | 320 #if WEBKIT_USING_CG |
321 scoped_ptr<skia::PlatformCanvas> skia_canvas_; | 321 scoped_ptr<skia::PlatformCanvas> skia_canvas_; |
322 #endif | 322 #endif |
323 | 323 |
324 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 324 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
325 }; | 325 }; |
326 | 326 |
327 } // namespace webkit_glue | 327 } // namespace webkit_glue |
328 | 328 |
329 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 329 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |