Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: components/html_viewer/media_factory.h

Issue 1133033003: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/media_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "media/audio/fake_audio_log_factory.h" 12 #include "media/audio/fake_audio_log_factory.h"
13 #include "media/base/audio_hardware_config.h" 13 #include "media/base/audio_hardware_config.h"
14 #include "mojo/application/public/interfaces/service_provider.mojom.h" 14 #include "mojo/application/public/interfaces/service_provider.mojom.h"
15 15
16 namespace base { 16 namespace base {
17 class SingleThreadTaskRunner; 17 class SingleThreadTaskRunner;
18 } 18 }
19 19
20 namespace blink { 20 namespace blink {
21 class WebContentDecryptionModule; 21 class WebContentDecryptionModule;
22 class WebEncryptedMediaClient; 22 class WebEncryptedMediaClient;
23 class WebMediaPlayer; 23 class WebMediaPlayer;
24 class WebLocalFrame; 24 class WebLocalFrame;
25 class WebURL; 25 class WebURL;
26 class WebMediaPlayerClient; 26 class WebMediaPlayerClient;
27 class WebMediaPlayerEncryptedMediaClient;
27 } 28 }
28 29
29 namespace media { 30 namespace media {
30 class AudioManager; 31 class AudioManager;
31 class AudioRendererSink; 32 class AudioRendererSink;
32 class CdmFactory; 33 class CdmFactory;
33 class MediaPermission; 34 class MediaPermission;
34 class WebEncryptedMediaClientImpl; 35 class WebEncryptedMediaClientImpl;
35 } 36 }
36 37
(...skipping 11 matching lines...) Expand all
48 public: 49 public:
49 MediaFactory( 50 MediaFactory(
50 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 51 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
51 mojo::Shell* shell); 52 mojo::Shell* shell);
52 ~MediaFactory(); 53 ~MediaFactory();
53 54
54 blink::WebMediaPlayer* CreateMediaPlayer( 55 blink::WebMediaPlayer* CreateMediaPlayer(
55 blink::WebLocalFrame* frame, 56 blink::WebLocalFrame* frame,
56 const blink::WebURL& url, 57 const blink::WebURL& url,
57 blink::WebMediaPlayerClient* client, 58 blink::WebMediaPlayerClient* client,
59 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
58 blink::WebContentDecryptionModule* initial_cdm, 60 blink::WebContentDecryptionModule* initial_cdm,
59 mojo::Shell* shell); 61 mojo::Shell* shell);
60 62
61 blink::WebEncryptedMediaClient* GetEncryptedMediaClient(); 63 blink::WebEncryptedMediaClient* GetEncryptedMediaClient();
62 64
63 private: 65 private:
64 mojo::ServiceProvider* GetMediaServiceProvider(); 66 mojo::ServiceProvider* GetMediaServiceProvider();
65 media::MediaPermission* GetMediaPermission(); 67 media::MediaPermission* GetMediaPermission();
66 media::CdmFactory* GetCdmFactory(); 68 media::CdmFactory* GetCdmFactory();
67 69
(...skipping 17 matching lines...) Expand all
85 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; 87 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
86 scoped_ptr<media::MediaPermission> media_permission_; 88 scoped_ptr<media::MediaPermission> media_permission_;
87 scoped_ptr<media::CdmFactory> cdm_factory_; 89 scoped_ptr<media::CdmFactory> cdm_factory_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(MediaFactory); 91 DISALLOW_COPY_AND_ASSIGN(MediaFactory);
90 }; 92 };
91 93
92 } // namespace html_viewer 94 } // namespace html_viewer
93 95
94 #endif // COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_ 96 #endif // COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_
OLDNEW
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/media_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698