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

Side by Side Diff: chromecast/browser/media/cast_mojo_media_application.h

Issue 1955053003: [chromecast] Delete CastMojoMediaApplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nogncheck for conditional include Created 4 years, 7 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 #ifndef CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_APPLICATION_H_
6 #define CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_APPLICATION_H_
7
8 #include <memory>
9
10 #include "base/memory/ref_counted.h"
11 #include "media/mojo/interfaces/service_factory.mojom.h"
12 #include "services/shell/public/cpp/interface_factory.h"
13 #include "services/shell/public/cpp/shell_client.h"
14 #include "services/shell/public/cpp/shell_connection_ref.h"
15
16 namespace base {
17 class SingleThreadTaskRunner;
18 } // namespace base
19
20 namespace media {
21 class MediaLog;
22 } // namespace media
23
24 namespace chromecast {
25 namespace media {
26
27 class CastMojoMediaClient;
28
29 class CastMojoMediaApplication
30 : public ::shell::ShellClient,
31 public ::shell::InterfaceFactory<::media::interfaces::ServiceFactory> {
32 public:
33 CastMojoMediaApplication(
34 std::unique_ptr<CastMojoMediaClient> mojo_media_client,
35 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner,
36 const base::Closure& quit_closure);
37 ~CastMojoMediaApplication() final;
38
39 private:
40 // ::shell::ShellClient implementation.
41 void Initialize(::shell::Connector* connector,
42 const ::shell::Identity& identity,
43 uint32_t id) final;
44 bool AcceptConnection(::shell::Connection* connection) final;
45
46 // ::shell::InterfaceFactory<interfaces::ServiceFactory> implementation.
47 void Create(::shell::Connection* connection,
48 mojo::InterfaceRequest<::media::interfaces::ServiceFactory>
49 request) final;
50
51 std::unique_ptr<CastMojoMediaClient> mojo_media_client_;
52 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
53 scoped_refptr<::media::MediaLog> media_log_;
54 ::shell::ShellConnectionRefFactory ref_factory_;
55 };
56
57 } // namespace media
58 } // namespace chromecast
59
60 #endif // CHROMECAST_BROWSER_MEDIA_CAST_MOJO_MEDIA_APPLICATION_H_
OLDNEW
« no previous file with comments | « chromecast/browser/media/BUILD.gn ('k') | chromecast/browser/media/cast_mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698