| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ | 6 #define COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "media/audio/fake_audio_log_factory.h" | 14 #include "media/audio/fake_audio_log_factory.h" |
| 15 #include "media/base/audio_hardware_config.h" | 15 #include "media/base/audio_hardware_config.h" |
| 16 #include "media/blink/url_index.h" | 16 #include "media/blink/url_index.h" |
| 17 #include "media/mojo/interfaces/service_factory.mojom.h" | 17 #include "media/mojo/interfaces/service_factory.mojom.h" |
| 18 #include "mojo/shell/public/interfaces/service_provider.mojom.h" | 18 #include "mojo/shell/public/interfaces/service_provider.mojom.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class SingleThreadTaskRunner; | 21 class SingleThreadTaskRunner; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 class WebContentDecryptionModule; | 25 class WebContentDecryptionModule; |
| 26 class WebEncryptedMediaClient; | 26 class WebEncryptedMediaClient; |
| 27 class WebLocalFrame; |
| 27 class WebMediaPlayer; | 28 class WebMediaPlayer; |
| 28 class WebLocalFrame; | |
| 29 class WebURL; | |
| 30 class WebMediaPlayerClient; | 29 class WebMediaPlayerClient; |
| 31 class WebMediaPlayerEncryptedMediaClient; | 30 class WebMediaPlayerEncryptedMediaClient; |
| 31 class WebMediaSession; |
| 32 class WebURL; |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace media { | 35 namespace media { |
| 35 class AudioManager; | 36 class AudioManager; |
| 36 class RestartableAudioRendererSink; | 37 class RestartableAudioRendererSink; |
| 37 class CdmFactory; | 38 class CdmFactory; |
| 38 class MediaPermission; | 39 class MediaPermission; |
| 39 class UrlIndex; | 40 class UrlIndex; |
| 40 class WebEncryptedMediaClientImpl; | 41 class WebEncryptedMediaClientImpl; |
| 41 } | 42 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, | 57 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, |
| 57 mojo::Shell* shell); | 58 mojo::Shell* shell); |
| 58 ~MediaFactory(); | 59 ~MediaFactory(); |
| 59 | 60 |
| 60 blink::WebMediaPlayer* CreateMediaPlayer( | 61 blink::WebMediaPlayer* CreateMediaPlayer( |
| 61 blink::WebLocalFrame* frame, | 62 blink::WebLocalFrame* frame, |
| 62 const blink::WebURL& url, | 63 const blink::WebURL& url, |
| 63 blink::WebMediaPlayerClient* client, | 64 blink::WebMediaPlayerClient* client, |
| 64 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 65 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
| 65 blink::WebContentDecryptionModule* initial_cdm, | 66 blink::WebContentDecryptionModule* initial_cdm, |
| 67 blink::WebMediaSession* session, |
| 66 mojo::Shell* shell); | 68 mojo::Shell* shell); |
| 67 | 69 |
| 68 blink::WebEncryptedMediaClient* GetEncryptedMediaClient(); | 70 blink::WebEncryptedMediaClient* GetEncryptedMediaClient(); |
| 69 | 71 |
| 70 private: | 72 private: |
| 71 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 73 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
| 72 media::MediaPermission* GetMediaPermission(); | 74 media::MediaPermission* GetMediaPermission(); |
| 73 media::CdmFactory* GetCdmFactory(); | 75 media::CdmFactory* GetCdmFactory(); |
| 74 | 76 |
| 75 #if !defined(OS_ANDROID) | 77 #if !defined(OS_ANDROID) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 95 | 97 |
| 96 // Media resource cache, lazily initialized. | 98 // Media resource cache, lazily initialized. |
| 97 linked_ptr<media::UrlIndex> url_index_; | 99 linked_ptr<media::UrlIndex> url_index_; |
| 98 | 100 |
| 99 DISALLOW_COPY_AND_ASSIGN(MediaFactory); | 101 DISALLOW_COPY_AND_ASSIGN(MediaFactory); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace html_viewer | 104 } // namespace html_viewer |
| 103 | 105 |
| 104 #endif // COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ | 106 #endif // COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ |
| OLD | NEW |