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

Side by Side 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, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_ptr.h"
6 #include "chromecast/media/mojo/cast_media_client.h"
7 #include "media/mojo/interfaces/service_factory.mojom.h"
8 #include "mojo/shell/public/cpp/application_delegate.h"
9 #include "mojo/shell/public/cpp/interface_factory_impl.h"
10
11 namespace chromecast {
12 namespace media {
13
14 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
15 : public mojo::ApplicationDelegate,
16 public mojo::InterfaceFactory<::media::interfaces::ServiceFactory> {
17 public:
18 CastMediaApplication();
19 ~CastMediaApplication() override;
20
21 static scoped_ptr<mojo::ApplicationDelegate> CreateApp();
22
23 // mojo::ApplicationDelegate implementation.
24 void Initialize(mojo::ApplicationImpl* app_impl) override;
25 bool ConfigureIncomingConnection(
26 mojo::ApplicationConnection* connection) override;
27
28 // mojo::InterfaceFactory<interfaces::ServiceFactory> implementation.
29 void Create(mojo::ApplicationConnection* connection,
30 mojo::InterfaceRequest<::media::interfaces::ServiceFactory>
31 request) final;
32
33 private:
34 mojo::ApplicationImpl* app_impl_;
35 CastMediaClient media_client_;
36 scoped_refptr<::media::MediaLog> media_log_;
37 };
38
39 } // namespace media
40 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698