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

Side by Side Diff: services/catalog/catalog.h

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (Closed)
Patch Set: . Created 4 years, 1 month 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 | « media/mojo/services/media_service.cc ('k') | services/catalog/catalog.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 2016 The Chromium Authors. All rights reserved. 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 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 SERVICES_CATALOG_CATALOG_H_ 5 #ifndef SERVICES_CATALOG_CATALOG_H_
6 #define SERVICES_CATALOG_CATALOG_H_ 6 #define SERVICES_CATALOG_CATALOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 service_manager::mojom::ServicePtr TakeService(); 69 service_manager::mojom::ServicePtr TakeService();
70 70
71 private: 71 private:
72 explicit Catalog(std::unique_ptr<Store> store); 72 explicit Catalog(std::unique_ptr<Store> store);
73 73
74 // Starts a scane for system packages. 74 // Starts a scane for system packages.
75 void ScanSystemPackageDir(); 75 void ScanSystemPackageDir();
76 76
77 // service_manager::Service: 77 // service_manager::Service:
78 bool OnConnect(const service_manager::Identity& remote_identity, 78 bool OnConnect(const service_manager::ServiceInfo& remote_info,
79 service_manager::InterfaceRegistry* registry) override; 79 service_manager::InterfaceRegistry* registry) override;
80 80
81 // service_manager::InterfaceFactory<service_manager::mojom::Resolver>: 81 // service_manager::InterfaceFactory<service_manager::mojom::Resolver>:
82 void Create(const service_manager::Identity& remote_identity, 82 void Create(const service_manager::Identity& remote_identity,
83 service_manager::mojom::ResolverRequest request) override; 83 service_manager::mojom::ResolverRequest request) override;
84 84
85 // service_manager::InterfaceFactory<mojom::Catalog>: 85 // service_manager::InterfaceFactory<mojom::Catalog>:
86 void Create(const service_manager::Identity& remote_identity, 86 void Create(const service_manager::Identity& remote_identity,
87 mojom::CatalogRequest request) override; 87 mojom::CatalogRequest request) override;
88 88
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 mojo::BindingSet<mojom::CatalogControl> control_bindings_; 120 mojo::BindingSet<mojom::CatalogControl> control_bindings_;
121 121
122 base::WeakPtrFactory<Catalog> weak_factory_; 122 base::WeakPtrFactory<Catalog> weak_factory_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(Catalog); 124 DISALLOW_COPY_AND_ASSIGN(Catalog);
125 }; 125 };
126 126
127 } // namespace catalog 127 } // namespace catalog
128 128
129 #endif // SERVICES_CATALOG_CATALOG_H_ 129 #endif // SERVICES_CATALOG_CATALOG_H_
OLDNEW
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698