| Index: services/shell/public/cpp/interface_registry.h
|
| diff --git a/services/shell/public/cpp/interface_registry.h b/services/shell/public/cpp/interface_registry.h
|
| index 81bd3654b1e4e17646889fc8dddfc44d484351de..1f4f22c3b13850877848771a68378fab1b776c4e 100644
|
| --- a/services/shell/public/cpp/interface_registry.h
|
| +++ b/services/shell/public/cpp/interface_registry.h
|
| @@ -66,6 +66,8 @@ class InterfaceRegistry : public mojom::InterfaceProvider {
|
|
|
| void Bind(mojom::InterfaceProviderRequest local_interfaces_request);
|
|
|
| + base::WeakPtr<InterfaceRegistry> GetWeakPtr();
|
| +
|
| // Allows |Interface| to be exposed via this registry. Requests to bind will
|
| // be handled by |factory|. Returns true if the interface was exposed, false
|
| // if Connection policy prevented exposure.
|
| @@ -115,6 +117,8 @@ class InterfaceRegistry : public mojom::InterfaceProvider {
|
|
|
| NameToInterfaceBinderMap name_to_binder_;
|
|
|
| + base::WeakPtrFactory<InterfaceRegistry> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(InterfaceRegistry);
|
| };
|
|
|
|
|