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

Unified Diff: content/browser/browser_child_process_host.cc

Issue 8787004: Make ChildProcessHost be used through an interface in content/public, instead of by inheritence. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « content/browser/browser_child_process_host.h ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_child_process_host.cc
===================================================================
--- content/browser/browser_child_process_host.cc (revision 112775)
+++ content/browser/browser_child_process_host.cc (working copy)
@@ -17,7 +17,7 @@
#include "content/browser/profiler_message_filter.h"
#include "content/browser/renderer_host/resource_message_filter.h"
#include "content/browser/trace_message_filter.h"
-#include "content/common/child_process_host.h"
+#include "content/common/child_process_host_impl.h"
#include "content/common/plugin_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
@@ -34,6 +34,8 @@
#endif
using content::BrowserThread;
+using content::ChildProcessHost;
+using content::ChildProcessHostImpl;
namespace {
@@ -60,9 +62,9 @@
#endif
disconnect_was_alive_(false) {
data_.type = type;
- data_.id = ChildProcessHost::GenerateChildProcessUniqueId();
+ data_.id = ChildProcessHostImpl::GenerateChildProcessUniqueId();
- child_process_host_.reset(new ChildProcessHost(this));
+ child_process_host_.reset(ChildProcessHost::Create(this));
child_process_host_->AddFilter(new TraceMessageFilter);
child_process_host_->AddFilter(new ProfilerMessageFilter);
@@ -98,7 +100,7 @@
#elif defined(OS_POSIX)
use_zygote,
environ,
- child_process_host()->channel()->TakeClientFileDescriptor(),
+ child_process_host()->TakeClientFileDescriptor(),
#endif
cmd_line,
&client_));
« no previous file with comments | « content/browser/browser_child_process_host.h ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698