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

Unified Diff: services/shell/public/cpp/interface_registry.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698