| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // the main thread, so we need this class to listen to destruction event of the | 48 // the main thread, so we need this class to listen to destruction event of the |
| 49 // main thread and cleanup the media threads when the even is received. Also | 49 // main thread and cleanup the media threads when the even is received. Also |
| 50 // at destruction of this class we will need to unhook it from destruction event | 50 // at destruction of this class we will need to unhook it from destruction event |
| 51 // list of the main thread. | 51 // list of the main thread. |
| 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 <vector> | 56 #include <vector> |
| 57 | 57 |
| 58 #include "base/gfx/platform_canvas.h" | |
| 59 #include "base/gfx/rect.h" | 58 #include "base/gfx/rect.h" |
| 60 #include "base/gfx/size.h" | 59 #include "base/gfx/size.h" |
| 61 #include "base/lock.h" | 60 #include "base/lock.h" |
| 62 #include "base/message_loop.h" | 61 #include "base/message_loop.h" |
| 63 #include "base/ref_counted.h" | 62 #include "base/ref_counted.h" |
| 64 #include "media/base/filters.h" | 63 #include "media/base/filters.h" |
| 65 #include "media/base/pipeline_impl.h" | 64 #include "media/base/pipeline_impl.h" |
| 65 #include "skia/ext/platform_canvas.h" |
| 66 #include "webkit/api/public/WebMediaPlayer.h" | 66 #include "webkit/api/public/WebMediaPlayer.h" |
| 67 #include "webkit/api/public/WebMediaPlayerClient.h" | 67 #include "webkit/api/public/WebMediaPlayerClient.h" |
| 68 | 68 |
| 69 class GURL; | 69 class GURL; |
| 70 | 70 |
| 71 namespace media { | 71 namespace media { |
| 72 class FilterFactoryCollection; | 72 class FilterFactoryCollection; |
| 73 } | 73 } |
| 74 | 74 |
| 75 namespace webkit_glue { | 75 namespace webkit_glue { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 WebKit::WebMediaPlayerClient* client_; | 252 WebKit::WebMediaPlayerClient* client_; |
| 253 | 253 |
| 254 scoped_refptr<Proxy> proxy_; | 254 scoped_refptr<Proxy> proxy_; |
| 255 | 255 |
| 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 } // namespace webkit_glue | 259 } // namespace webkit_glue |
| 260 | 260 |
| 261 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 261 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |