diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 07:10:44 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 07:10:44 +0000 |
commit | 4734d0becafa5b77d708020eed24d97148ea208d (patch) | |
tree | db94ca97a1ac3f1831033ef07dbda98ccb53dfa6 /content/browser/renderer_host/render_process_host_impl.cc | |
parent | 463ea5fc399e6275a2351df6b398b7d91b8f5a61 (diff) | |
download | chromium_src-4734d0becafa5b77d708020eed24d97148ea208d.zip chromium_src-4734d0becafa5b77d708020eed24d97148ea208d.tar.gz chromium_src-4734d0becafa5b77d708020eed24d97148ea208d.tar.bz2 |
Make ChildProcessHost be used through an interface in content/public, instead of by inheritence.
BUG=98716
Review URL: http://codereview.chromium.org/8787004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_process_host_impl.cc')
-rw-r--r-- | content/browser/renderer_host/render_process_host_impl.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 4f05460..009b731 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -78,7 +78,7 @@ #include "content/browser/user_metrics.h" #include "content/browser/webui/web_ui_factory.h" #include "content/browser/worker_host/worker_message_filter.h" -#include "content/common/child_process_host.h" +#include "content/common/child_process_host_impl.h" #include "content/common/child_process_messages.h" #include "content/common/gpu/gpu_messages.h" #include "content/public/browser/notification_service.h" @@ -112,6 +112,8 @@ #include "third_party/skia/include/core/SkBitmap.h" using content::BrowserThread; +using content::ChildProcessHost; +using content::ChildProcessHostImpl; // This class creates the IO thread for the renderer when running in // single-process mode. It's not used in multi-process mode. @@ -283,7 +285,7 @@ RenderProcessHostImpl::RenderProcessHostImpl( this, &RenderProcessHostImpl::ClearTransportDIBCache)), accessibility_enabled_(false), is_initialized_(false), - id_(ChildProcessHost::GenerateChildProcessUniqueId()), + id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()), browser_context_(browser_context), sudden_termination_allowed_(true), ignore_input_events_(false) { @@ -387,7 +389,7 @@ bool RenderProcessHostImpl::Init(bool is_accessibility_enabled) { // Setup the IPC channel. const std::string channel_id = - ChildProcessHost::GenerateRandomChannelID(this); + ChildProcessHostImpl::GenerateRandomChannelID(this); channel_.reset(new IPC::ChannelProxy( channel_id, IPC::Channel::MODE_SERVER, this, BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |