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

Unified Diff: services/ui/service.h

Issue 2795883002: Eliminate OnConnect usage (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/input_devices/input_device_server.cc ('k') | services/ui/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/service.h
diff --git a/services/ui/service.h b/services/ui/service.h
index 1b83c7d4b4de1eddd7a3b2fab8504f8fa6ac907a..92e5f6078282a3680bd217cbe7214221b5345007 100644
--- a/services/ui/service.h
+++ b/services/ui/service.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/cpp/service_runner.h"
@@ -101,8 +102,9 @@ class Service
// service_manager::Service:
void OnStart() override;
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) override;
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// WindowServerDelegate:
void StartDisplayInit() override;
@@ -176,7 +178,7 @@ class Service
UserIdToUserState user_id_to_user_state_;
// Provides input-device information via Mojo IPC. Registers Mojo interfaces
- // and must outlive service_manager::InterfaceRegistry.
+ // and must outlive |registry_|.
InputDeviceServer input_device_server_;
bool test_config_;
@@ -185,7 +187,7 @@ class Service
#endif
// Manages display hardware and handles display management. May register Mojo
- // interfaces and must outlive service_manager::InterfaceRegistry.
+ // interfaces and must outlive |registry_|.
std::unique_ptr<display::ScreenManager> screen_manager_;
IMERegistrarImpl ime_registrar_;
@@ -194,6 +196,8 @@ class Service
std::unique_ptr<discardable_memory::DiscardableSharedMemoryManager>
discardable_shared_memory_manager_;
+ service_manager::BinderRegistry registry_;
+
DISALLOW_COPY_AND_ASSIGN(Service);
};
« no previous file with comments | « services/ui/input_devices/input_device_server.cc ('k') | services/ui/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698