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

Unified Diff: services/file/file_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/device/device_service.cc ('k') | services/file/file_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/file/file_service.h
diff --git a/services/file/file_service.h b/services/file/file_service.h
index 357aa88dc6377db96425c42cbbd7aa82758edb36..c91490a69f69e5d8300f187b631c85ba0c4eb4f2 100644
--- a/services/file/file_service.h
+++ b/services/file/file_service.h
@@ -11,6 +11,7 @@
#include "components/leveldb/public/interfaces/leveldb.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/file/public/interfaces/file_system.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"
@@ -33,8 +34,9 @@ class FileService
private:
// |Service| override:
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;
// |InterfaceFactory<mojom::FileSystem>| implementation:
void Create(const service_manager::Identity& remote_identity,
@@ -57,6 +59,8 @@ class FileService
class LevelDBServiceObjects;
std::unique_ptr<LevelDBServiceObjects> leveldb_objects_;
+ service_manager::BinderRegistry registry_;
+
DISALLOW_COPY_AND_ASSIGN(FileService);
};
« no previous file with comments | « services/device/device_service.cc ('k') | services/file/file_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698