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

Unified Diff: content/public/test/test_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
Index: content/public/test/test_service.h
diff --git a/content/public/test/test_service.h b/content/public/test/test_service.h
index 8acc9de59fb137a5e90e15081020f423ac21ad6c..da61b44289b9a782ab9824b2fe73d1df1b86dd55 100644
--- a/content/public/test/test_service.h
+++ b/content/public/test/test_service.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "content/public/test/test_service.mojom.h"
#include "mojo/public/cpp/bindings/binding.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"
@@ -29,8 +30,9 @@ class TestService
private:
// service_manager::Service:
- 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;
// service_manager::InterfaceFactory<mojom::TestService>:
void Create(const service_manager::Identity& remote_identity,
@@ -44,6 +46,7 @@ class TestService
void CreateSharedBuffer(const std::string& message,
const CreateSharedBufferCallback& callback) override;
+ service_manager::BinderRegistry registry_;
mojo::Binding<mojom::TestService> service_binding_;
// The name of the app connecting to us.
« no previous file with comments | « content/browser/dom_storage/local_storage_context_mojo_unittest.cc ('k') | content/public/test/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698