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

Unified Diff: chromecast/media/mojo/cast_media_application.h

Issue 1649933002: [Chromecast] Hook up mojo media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted unnecessary changes Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/mojo/cast_media_application.h
diff --git a/chromecast/media/mojo/cast_media_application.h b/chromecast/media/mojo/cast_media_application.h
new file mode 100644
index 0000000000000000000000000000000000000000..be6b1ac0022fea1832a7d7aa91a567d1ca4e7954
--- /dev/null
+++ b/chromecast/media/mojo/cast_media_application.h
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/memory/scoped_ptr.h"
+#include "chromecast/media/mojo/cast_media_client.h"
+#include "media/mojo/interfaces/service_factory.mojom.h"
+#include "mojo/shell/public/cpp/application_delegate.h"
+#include "mojo/shell/public/cpp/interface_factory_impl.h"
+
+namespace chromecast {
+namespace media {
+
+class CastMediaApplication
xhwang 2016/01/29 05:44:13 Is there any reason Cast can't just use the MojoMe
alokp 2016/01/29 06:08:36 It could. We either need to figure out how to crea
xhwang 2016/01/29 07:00:44 +jrummell We will actually need something similar
alokp 2016/01/29 18:29:25 I considered doing that originally but thought it
+ : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<::media::interfaces::ServiceFactory> {
+ public:
+ CastMediaApplication();
+ ~CastMediaApplication() override;
+
+ static scoped_ptr<mojo::ApplicationDelegate> CreateApp();
+
+ // mojo::ApplicationDelegate implementation.
+ void Initialize(mojo::ApplicationImpl* app_impl) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ // mojo::InterfaceFactory<interfaces::ServiceFactory> implementation.
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<::media::interfaces::ServiceFactory>
+ request) final;
+
+ private:
+ mojo::ApplicationImpl* app_impl_;
+ CastMediaClient media_client_;
+ scoped_refptr<::media::MediaLog> media_log_;
+};
+
+} // namespace media
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698