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 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "media/base/cdm_factory.h" | 17 #include "media/base/cdm_factory.h" |
18 #include "media/base/media_export.h" | |
19 #include "media/base/pipeline.h" | 18 #include "media/base/pipeline.h" |
20 #include "media/base/renderer_factory.h" | 19 #include "media/base/renderer_factory.h" |
21 #include "media/base/text_track.h" | 20 #include "media/base/text_track.h" |
22 #include "media/blink/buffered_data_source.h" | 21 #include "media/blink/buffered_data_source.h" |
23 #include "media/blink/buffered_data_source_host_impl.h" | 22 #include "media/blink/buffered_data_source_host_impl.h" |
24 #include "media/blink/encrypted_media_player_support.h" | 23 #include "media/blink/encrypted_media_player_support.h" |
| 24 #include "media/blink/media_blink_export.h" |
25 #include "media/blink/video_frame_compositor.h" | 25 #include "media/blink/video_frame_compositor.h" |
26 #include "media/blink/webmediaplayer_params.h" | 26 #include "media/blink/webmediaplayer_params.h" |
27 #include "media/blink/webmediaplayer_util.h" | 27 #include "media/blink/webmediaplayer_util.h" |
28 #include "media/renderers/skcanvas_video_renderer.h" | 28 #include "media/renderers/skcanvas_video_renderer.h" |
29 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" | 29 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" |
30 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 30 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
31 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 31 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
(...skipping 19 matching lines...) Expand all Loading... |
54 class GpuVideoAcceleratorFactories; | 54 class GpuVideoAcceleratorFactories; |
55 class MediaLog; | 55 class MediaLog; |
56 class VideoFrameCompositor; | 56 class VideoFrameCompositor; |
57 class WebAudioSourceProviderImpl; | 57 class WebAudioSourceProviderImpl; |
58 class WebMediaPlayerDelegate; | 58 class WebMediaPlayerDelegate; |
59 class WebTextTrackImpl; | 59 class WebTextTrackImpl; |
60 | 60 |
61 // The canonical implementation of blink::WebMediaPlayer that's backed by | 61 // The canonical implementation of blink::WebMediaPlayer that's backed by |
62 // Pipeline. Handles normal resource loading, Media Source, and | 62 // Pipeline. Handles normal resource loading, Media Source, and |
63 // Encrypted Media. | 63 // Encrypted Media. |
64 class MEDIA_EXPORT WebMediaPlayerImpl | 64 class MEDIA_BLINK_EXPORT WebMediaPlayerImpl |
65 : public NON_EXPORTED_BASE(blink::WebMediaPlayer), | 65 : public NON_EXPORTED_BASE(blink::WebMediaPlayer), |
66 public base::SupportsWeakPtr<WebMediaPlayerImpl> { | 66 public base::SupportsWeakPtr<WebMediaPlayerImpl> { |
67 public: | 67 public: |
68 // Constructs a WebMediaPlayer implementation using Chromium's media stack. | 68 // Constructs a WebMediaPlayer implementation using Chromium's media stack. |
69 // |delegate| may be null. |renderer| may also be null, in which case an | 69 // |delegate| may be null. |renderer| may also be null, in which case an |
70 // internal renderer will be created. | 70 // internal renderer will be created. |
71 // TODO(xhwang): Drop the internal renderer path and always pass in a renderer | 71 // TODO(xhwang): Drop the internal renderer path and always pass in a renderer |
72 // here. | 72 // here. |
73 WebMediaPlayerImpl( | 73 WebMediaPlayerImpl( |
74 blink::WebLocalFrame* frame, | 74 blink::WebLocalFrame* frame, |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 342 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; |
343 | 343 |
344 scoped_ptr<RendererFactory> renderer_factory_; | 344 scoped_ptr<RendererFactory> renderer_factory_; |
345 | 345 |
346 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 346 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
347 }; | 347 }; |
348 | 348 |
349 } // namespace media | 349 } // namespace media |
350 | 350 |
351 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 351 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |