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

Unified Diff: media/mojo/services/mojo_media_client.h

Issue 2544523002: Pass Connector* into MojoMediaClient::Initialize(). (Closed)
Patch Set: Rebase Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | media/mojo/services/mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_media_client.h
diff --git a/media/mojo/services/mojo_media_client.h b/media/mojo/services/mojo_media_client.h
index c6020662013bf40fa2b02c12d4854d299b32c934..ce83b51d6f99ee10f2d455f1f72bad1801800f10 100644
--- a/media/mojo/services/mojo_media_client.h
+++ b/media/mojo/services/mojo_media_client.h
@@ -16,6 +16,7 @@ class SingleThreadTaskRunner;
}
namespace service_manager {
+class Connector;
namespace mojom {
class InterfaceProvider;
}
@@ -38,8 +39,9 @@ class MEDIA_MOJO_EXPORT MojoMediaClient {
// up tasks requiring the message loop must be completed before returning.
virtual ~MojoMediaClient();
- // Called exactly once before any other method.
- virtual void Initialize();
+ // Called exactly once before any other method. |connector| can be used by
+ // |this| to connect to other services. It is guaranteed to outlive |this|.
+ virtual void Initialize(service_manager::Connector* connector);
virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
@@ -61,9 +63,11 @@ class MEDIA_MOJO_EXPORT MojoMediaClient {
virtual std::unique_ptr<RendererFactory> CreateRendererFactory(
const scoped_refptr<MediaLog>& media_log);
- // Returns the CdmFactory to be used by MojoCdmService.
+ // Returns the CdmFactory to be used by MojoCdmService. |host_interfaces| can
+ // be used to request interfaces provided remotely by the host. It may be a
+ // nullptr if the host chose not to bind the InterfacePtr.
virtual std::unique_ptr<CdmFactory> CreateCdmFactory(
- service_manager::mojom::InterfaceProvider* interface_provider);
+ service_manager::mojom::InterfaceProvider* host_interfaces);
protected:
MojoMediaClient();
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | media/mojo/services/mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698