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

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

Issue 599333002: ChannelMojo: Handle when ChannelMojo outlives ChannelMojoHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 92d1e4d1b78802735102f58033d32dd093bc8679..f2a2fdcab957bcb99f96a614df08b791fcfe1d12 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -22,6 +22,7 @@
#include "content/public/browser/render_process_host.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_platform_file.h"
+#include "ipc/mojo/ipc_channel_mojo_host.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -34,10 +35,6 @@ namespace gfx {
class Size;
}
-namespace IPC {
-class ChannelMojoHost;
-}
-
namespace content {
class AudioRendererHost;
class BrowserCdmManager;
@@ -266,7 +263,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
// A host object ChannelMojo needs. The lifetime is bound to
// the RenderProcessHostImpl, not the channel.
- scoped_ptr<IPC::ChannelMojoHost> channel_mojo_host_;
+ scoped_ptr<IPC::ChannelMojoHost, IPC::ChannelMojoHostDeleter>
viettrungluu 2014/09/25 19:38:34 In general, this seems fragile/awkward to me. It
Hajime Morrita 2014/09/25 22:00:03 Thanks for the suggestion! This totally makes sens
+ channel_mojo_host_;
// True if fast shutdown has been performed on this RPH.
bool fast_shutdown_started_;

Powered by Google App Engine
This is Rietveld 408576698