| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline 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 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline 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. |
| 11 // | 11 // |
| 12 // Other issues: | 12 // Other issues: |
| 13 // During tear down of the whole browser or a tab, the DOM tree may not be | 13 // During tear down of the whole browser or a tab, the DOM tree may not be |
| 14 // destructed nicely, and there will be some dangling media threads trying to | 14 // destructed nicely, and there will be some dangling media threads trying to |
| 15 // the main thread, so we need this class to listen to destruction event of the | 15 // the main thread, so we need this class to listen to destruction event of the |
| 16 // main thread and cleanup the media threads when the even is received. Also | 16 // main thread and cleanup the media threads when the even is received. Also |
| 17 // at destruction of this class we will need to unhook it from destruction event | 17 // at destruction of this class we will need to unhook it from destruction event |
| 18 // list of the main thread. | 18 // list of the main thread. |
| 19 | 19 |
| 20 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 20 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 21 #define WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 21 #define WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 22 | 22 |
| 23 #include <string> | 23 #include <string> |
| 24 | 24 |
| 25 #include "base/memory/ref_counted.h" | 25 #include "base/memory/ref_counted.h" |
| 26 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
| 27 #include "base/memory/weak_ptr.h" | 27 #include "base/memory/weak_ptr.h" |
| 28 #include "base/threading/thread.h" | 28 #include "base/threading/thread.h" |
| 29 #include "cc/layers/video_frame_provider.h" | 29 #include "cc/layers/video_frame_provider.h" |
| 30 #include "googleurl/src/gurl.h" | |
| 31 #include "media/base/audio_renderer_sink.h" | 30 #include "media/base/audio_renderer_sink.h" |
| 32 #include "media/base/decryptor.h" | 31 #include "media/base/decryptor.h" |
| 33 #include "media/base/media_keys.h" | 32 #include "media/base/media_keys.h" |
| 34 #include "media/base/pipeline.h" | 33 #include "media/base/pipeline.h" |
| 35 #include "media/base/text_track.h" | 34 #include "media/base/text_track.h" |
| 36 #include "media/filters/gpu_video_decoder.h" | 35 #include "media/filters/gpu_video_decoder.h" |
| 37 #include "media/filters/skcanvas_video_renderer.h" | 36 #include "media/filters/skcanvas_video_renderer.h" |
| 38 #include "skia/ext/platform_canvas.h" | 37 #include "skia/ext/platform_canvas.h" |
| 39 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 38 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 40 #include "third_party/WebKit/public/web/WebAudioSourceProvider.h" | 39 #include "third_party/WebKit/public/web/WebAudioSourceProvider.h" |
| 41 #include "third_party/WebKit/public/web/WebMediaPlayer.h" | 40 #include "third_party/WebKit/public/web/WebMediaPlayer.h" |
| 42 #include "third_party/WebKit/public/web/WebMediaPlayerClient.h" | 41 #include "third_party/WebKit/public/web/WebMediaPlayerClient.h" |
| 42 #include "url/gurl.h" |
| 43 #include "webkit/renderer/media/crypto/proxy_decryptor.h" | 43 #include "webkit/renderer/media/crypto/proxy_decryptor.h" |
| 44 | 44 |
| 45 class RenderAudioSourceProvider; | 45 class RenderAudioSourceProvider; |
| 46 | 46 |
| 47 namespace WebKit { | 47 namespace WebKit { |
| 48 class WebFrame; | 48 class WebFrame; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace base { | 51 namespace base { |
| 52 class MessageLoopProxy; | 52 class MessageLoopProxy; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 364 |
| 365 // Text track objects get a unique index value when they're created. | 365 // Text track objects get a unique index value when they're created. |
| 366 int text_track_index_; | 366 int text_track_index_; |
| 367 | 367 |
| 368 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 368 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 } // namespace webkit_media | 371 } // namespace webkit_media |
| 372 | 372 |
| 373 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 373 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |