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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2072613003: Convert GetSearchProviderInstallState to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 5 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/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index c3aa8187f4a44e2c60d26c5d37ea9ad13d17ae84..4fa12011c1e6d6baeca4ed6dc84352d1997e05a4 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -55,6 +55,7 @@ class InProcessChildThreadParams;
class MessagePortMessageFilter;
class MojoChildConnection;
class NotificationMessageFilter;
+class OwnedInterface;
#if defined(ENABLE_WEBRTC)
class P2PSocketDispatcherHost;
#endif
@@ -136,6 +137,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
bool SuddenTerminationAllowed() const override;
IPC::ChannelProxy* GetChannel() override;
void AddFilter(BrowserMessageFilter* filter) override;
+ void AddOwnedInterface(std::unique_ptr<OwnedInterface> impl) override;
bool FastShutdownForPageCount(size_t count) override;
bool FastShutdownStarted() const override;
base::TimeDelta GetChildProcessIdleTime() const override;
@@ -362,6 +364,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
std::string child_token_;
+ // Services owned by this host for the purpose of service impl lifetime
+ // management. These need to outlive |mojo_child_connection_|, as they are
+ // registered on the |InterfaceRegistry| indirectly owned by that object.
+ std::vector<std::unique_ptr<OwnedInterface>> owned_interface_impls_;
+
std::unique_ptr<MojoChildConnection> mojo_child_connection_;
shell::mojom::ServicePtr test_service_;

Powered by Google App Engine
This is Rietveld 408576698