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

Side by Side Diff: media/mojo/services/mojo_media_application.h

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: . Created 4 years, 4 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 | « mash/webtest/webtest.cc ('k') | media/mojo/services/mojo_media_application.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 MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 public NON_EXPORTED_BASE(shell::InterfaceFactory<mojom::MediaService>), 31 public NON_EXPORTED_BASE(shell::InterfaceFactory<mojom::MediaService>),
32 public NON_EXPORTED_BASE(mojom::MediaService) { 32 public NON_EXPORTED_BASE(mojom::MediaService) {
33 public: 33 public:
34 MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client, 34 MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client,
35 const base::Closure& quit_closure); 35 const base::Closure& quit_closure);
36 ~MojoMediaApplication() final; 36 ~MojoMediaApplication() final;
37 37
38 private: 38 private:
39 // shell::Service implementation. 39 // shell::Service implementation.
40 void OnStart(const shell::Identity& identity) final; 40 void OnStart(const shell::Identity& identity) final;
41 bool OnConnect(shell::Connection* connection) final; 41 bool OnConnect(const shell::Identity& remote_identity,
42 shell::InterfaceRegistry* registry) final;
42 bool OnStop() final; 43 bool OnStop() final;
43 44
44 // shell::InterfaceFactory<mojom::MediaService> implementation. 45 // shell::InterfaceFactory<mojom::MediaService> implementation.
45 void Create(const shell::Identity& remote_identity, 46 void Create(const shell::Identity& remote_identity,
46 mojom::MediaServiceRequest request) final; 47 mojom::MediaServiceRequest request) final;
47 48
48 // mojom::MediaService implementation. 49 // mojom::MediaService implementation.
49 void CreateServiceFactory( 50 void CreateServiceFactory(
50 mojom::ServiceFactoryRequest request, 51 mojom::ServiceFactoryRequest request,
51 shell::mojom::InterfaceProviderPtr remote_interfaces) final; 52 shell::mojom::InterfaceProviderPtr remote_interfaces) final;
52 53
53 // Note: Since each instance runs on a different thread, do not share a common 54 // Note: Since each instance runs on a different thread, do not share a common
54 // MojoMediaClient with other instances to avoid threading issues. Hence using 55 // MojoMediaClient with other instances to avoid threading issues. Hence using
55 // a unique_ptr here. 56 // a unique_ptr here.
56 std::unique_ptr<MojoMediaClient> mojo_media_client_; 57 std::unique_ptr<MojoMediaClient> mojo_media_client_;
57 58
58 scoped_refptr<MediaLog> media_log_; 59 scoped_refptr<MediaLog> media_log_;
59 shell::ServiceContextRefFactory ref_factory_; 60 shell::ServiceContextRefFactory ref_factory_;
60 61
61 mojo::BindingSet<mojom::MediaService> bindings_; 62 mojo::BindingSet<mojom::MediaService> bindings_;
62 }; 63 };
63 64
64 } // namespace media 65 } // namespace media
65 66
66 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ 67 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
OLDNEW
« no previous file with comments | « mash/webtest/webtest.cc ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698