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

Side by Side Diff: mojo/shell/public/cpp/lib/service_registry.h

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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 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 MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 5 #ifndef MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
6 #define MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 6 #define MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 18 matching lines...) Expand all
29 // an application to expose to another application. If this set contains only 29 // an application to expose to another application. If this set contains only
30 // the string value "*" all interfaces may be exposed. 30 // the string value "*" all interfaces may be exposed.
31 ServiceRegistry(const std::string& connection_url, 31 ServiceRegistry(const std::string& connection_url,
32 const std::string& remote_url, 32 const std::string& remote_url,
33 uint32_t remote_id, 33 uint32_t remote_id,
34 ServiceProviderPtr remote_services, 34 ServiceProviderPtr remote_services,
35 InterfaceRequest<ServiceProvider> local_services, 35 InterfaceRequest<ServiceProvider> local_services,
36 const std::set<std::string>& allowed_interfaces); 36 const std::set<std::string>& allowed_interfaces);
37 ~ServiceRegistry() override; 37 ~ServiceRegistry() override;
38 38
39 Shell::ConnectToApplicationCallback GetConnectToApplicationCallback(); 39 shell::mojom::Shell::ConnectToApplicationCallback
40 GetConnectToApplicationCallback();
40 41
41 // ApplicationConnection overrides. 42 // ApplicationConnection overrides.
42 void SetServiceConnector(ServiceConnector* service_connector) override; 43 void SetServiceConnector(ServiceConnector* service_connector) override;
43 bool SetServiceConnectorForName(ServiceConnector* service_connector, 44 bool SetServiceConnectorForName(ServiceConnector* service_connector,
44 const std::string& interface_name) override; 45 const std::string& interface_name) override;
45 const std::string& GetConnectionURL() override; 46 const std::string& GetConnectionURL() override;
46 const std::string& GetRemoteApplicationURL() override; 47 const std::string& GetRemoteApplicationURL() override;
47 ServiceProvider* GetServiceProvider() override; 48 ServiceProvider* GetServiceProvider() override;
48 ServiceProvider* GetLocalServiceProvider() override; 49 ServiceProvider* GetLocalServiceProvider() override;
49 void SetRemoteServiceProviderConnectionErrorHandler( 50 void SetRemoteServiceProviderConnectionErrorHandler(
(...skipping 28 matching lines...) Expand all
78 std::vector<Closure> remote_id_callbacks_; 79 std::vector<Closure> remote_id_callbacks_;
79 base::WeakPtrFactory<ServiceRegistry> weak_factory_; 80 base::WeakPtrFactory<ServiceRegistry> weak_factory_;
80 81
81 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry); 82 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceRegistry);
82 }; 83 };
83 84
84 } // namespace internal 85 } // namespace internal
85 } // namespace mojo 86 } // namespace mojo
86 87
87 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_ 88 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_SERVICE_REGISTRY_H_
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/content_handler_factory.cc ('k') | mojo/shell/public/cpp/lib/service_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698