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

Unified Diff: content/browser/browser_child_process_host_impl.h

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: Created 3 years, 11 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/browser_child_process_host_impl.h
diff --git a/content/browser/browser_child_process_host_impl.h b/content/browser/browser_child_process_host_impl.h
index 9975dc1aa692912a76b37f63de7692c66e96091e..c16609ae0ff4716ec0e768f7a61fb0ff9ab45f2a 100644
--- a/content/browser/browser_child_process_host_impl.h
+++ b/content/browser/browser_child_process_host_impl.h
@@ -84,6 +84,7 @@ class CONTENT_EXPORT BrowserChildProcessHostImpl
// ChildProcessHostDelegate implementation:
bool CanShutdown() override;
+ void OnChannelInitialized(IPC::Channel* channel) override;
void OnChildDisconnected() override;
const base::Process& GetProcess() const override;
service_manager::InterfaceProvider* GetRemoteInterfaces() override;
@@ -113,6 +114,8 @@ class CONTENT_EXPORT BrowserChildProcessHostImpl
return child_connection_.get();
}
+ IPC::Channel* child_channel() const { return channel_; }
+
typedef std::list<BrowserChildProcessHostImpl*> BrowserChildProcessList;
private:
friend class BrowserChildProcessHostIterator;
@@ -168,6 +171,7 @@ class CONTENT_EXPORT BrowserChildProcessHostImpl
// The memory allocator, if any, in which the process will write its metrics.
std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_;
+ IPC::Channel* channel_ = nullptr;
bool is_channel_connected_;
bool notify_child_disconnected_;

Powered by Google App Engine
This is Rietveld 408576698