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

Unified Diff: content/common/mojo/service_registry_impl.h

Issue 302573002: Add a Javascript wrapper around ServiceRegistry and expose it to WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render-view-shell
Patch Set: address comment Created 6 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: content/common/mojo/service_registry_impl.h
diff --git a/content/common/mojo/service_registry_impl.h b/content/common/mojo/service_registry_impl.h
index 8e60b3756b7299faf24f063a059418a8c51d55cd..e4b053e9e1f5fd5359d9c4aff862e84cb60631f6 100644
--- a/content/common/mojo/service_registry_impl.h
+++ b/content/common/mojo/service_registry_impl.h
@@ -41,6 +41,7 @@ class ServiceRegistryImpl
virtual void GetRemoteInterface(
const base::StringPiece& service_name,
mojo::ScopedMessagePipeHandle handle) OVERRIDE;
+ virtual base::WeakPtr<ServiceRegistry> GetWeakPtr() OVERRIDE;
private:
// mojo::InterfaceImpl<mojo::IInterfaceProvider> overrides.
@@ -54,6 +55,8 @@ class ServiceRegistryImpl
std::queue<std::pair<std::string, mojo::MessagePipeHandle> >
pending_connects_;
bool bound_;
+
+ base::WeakPtrFactory<ServiceRegistry> weak_factory_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698