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

Side by Side Diff: content/public/common/service_manager_connection.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
« no previous file with comments | « content/public/common/service_info.cc ('k') | content/public/test/DEPS » ('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 CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_
6 #define CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_ 6 #define CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/service_info.h" 13 #include "content/public/common/service_info.h"
14 #include "services/shell/public/cpp/identity.h" 14 #include "services/service_manager/public/cpp/identity.h"
15 #include "services/shell/public/interfaces/service.mojom.h" 15 #include "services/service_manager/public/interfaces/service.mojom.h"
16 16
17 namespace shell { 17 namespace shell {
18 class Connection; 18 class Connection;
19 class Connector; 19 class Connector;
20 class InterfaceProvider; 20 class InterfaceProvider;
21 class InterfaceRegistry; 21 class InterfaceRegistry;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 class ConnectionFilter; 26 class ConnectionFilter;
27 27
28 // Encapsulates a connection to a //services/shell. 28 // Encapsulates a connection to a //services/service_manager.
29 // Access a global instance on the thread the ServiceContext was bound by 29 // Access a global instance on the thread the ServiceContext was bound by
30 // calling Holder::Get(). 30 // calling Holder::Get().
31 // Clients can add shell::Service implementations whose exposed interfaces 31 // Clients can add shell::Service implementations whose exposed interfaces
32 // will be exposed to inbound connections to this object's Service. 32 // will be exposed to inbound connections to this object's Service.
33 // Alternatively clients can define named services that will be constructed when 33 // Alternatively clients can define named services that will be constructed when
34 // requests for those service names are received. 34 // requests for those service names are received.
35 // Clients must call any of the registration methods when receiving 35 // Clients must call any of the registration methods when receiving
36 // ContentBrowserClient::RegisterInProcessServices(). 36 // ContentBrowserClient::RegisterInProcessServices().
37 class CONTENT_EXPORT ServiceManagerConnection { 37 class CONTENT_EXPORT ServiceManagerConnection {
38 public: 38 public:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // For in-process services, it is preferable to use |AddEmbeddedService()| as 139 // For in-process services, it is preferable to use |AddEmbeddedService()| as
140 // defined above. 140 // defined above.
141 virtual void AddServiceRequestHandler( 141 virtual void AddServiceRequestHandler(
142 const std::string& name, 142 const std::string& name,
143 const ServiceRequestHandler& handler) = 0; 143 const ServiceRequestHandler& handler) = 0;
144 }; 144 };
145 145
146 } // namespace content 146 } // namespace content
147 147
148 #endif // CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_ 148 #endif // CONTENT_PUBLIC_COMMON_SERVICE_MANAGER_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/public/common/service_info.cc ('k') | content/public/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698