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

Side by Side Diff: services/service_manager/public/cpp/interface_registry.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
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_SHELL_PUBLIC_CPP_INTERFACE_REGISTRY_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_REGISTRY_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_INTERFACE_REGISTRY_H_ 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_REGISTRY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
16 #include "services/shell/public/cpp/capabilities.h" 16 #include "services/service_manager/public/cpp/capabilities.h"
17 #include "services/shell/public/cpp/identity.h" 17 #include "services/service_manager/public/cpp/identity.h"
18 #include "services/shell/public/cpp/lib/callback_binder.h" 18 #include "services/service_manager/public/cpp/lib/callback_binder.h"
19 #include "services/shell/public/cpp/lib/interface_factory_binder.h" 19 #include "services/service_manager/public/cpp/lib/interface_factory_binder.h"
20 #include "services/shell/public/interfaces/interface_provider.mojom.h" 20 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
21 21
22 namespace shell { 22 namespace shell {
23 class Connection; 23 class Connection;
24 class InterfaceBinder; 24 class InterfaceBinder;
25 25
26 // An implementation of mojom::InterfaceProvider that allows the user to 26 // An implementation of mojom::InterfaceProvider that allows the user to
27 // register services to be exposed to another application. 27 // register services to be exposed to another application.
28 // 28 //
29 // To use, define a class that implements your specific interface. Then 29 // To use, define a class that implements your specific interface. Then
30 // implement an InterfaceFactory<Foo> that binds instances of FooImpl to 30 // implement an InterfaceFactory<Foo> that binds instances of FooImpl to
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 std::queue<std::pair<std::string, mojo::ScopedMessagePipeHandle>> 178 std::queue<std::pair<std::string, mojo::ScopedMessagePipeHandle>>
179 pending_interface_requests_; 179 pending_interface_requests_;
180 180
181 base::WeakPtrFactory<InterfaceRegistry> weak_factory_; 181 base::WeakPtrFactory<InterfaceRegistry> weak_factory_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(InterfaceRegistry); 183 DISALLOW_COPY_AND_ASSIGN(InterfaceRegistry);
184 }; 184 };
185 185
186 } // namespace shell 186 } // namespace shell
187 187
188 #endif // SERVICES_SHELL_PUBLIC_CPP_INTERFACE_REGISTRY_H_ 188 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_REGISTRY_H_
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/interface_provider.h ('k') | services/service_manager/public/cpp/lib/callback_binder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698