Bug 798350 - Remove ChildProcessHost::resource_dispatcher_host_ since it is unused, and simplify the ChildProcessHost constructor; r=cjones

--HG--
extra : rebase_source : 4908129a3d9d2e57ebb0e7ef7b31dca14bedd72c
This commit is contained in:
Ehsan Akhgari 2012-10-05 16:09:46 -04:00
parent bf3f95bb0b
commit a2c114b534
2 changed files with 2 additions and 8 deletions

View File

@ -47,12 +47,10 @@ class ChildNotificationTask : public Task {
ChildProcessHost::ChildProcessHost(
ProcessType type, ResourceDispatcherHost* resource_dispatcher_host)
ChildProcessHost::ChildProcessHost(ProcessType type)
:
ChildProcessInfo(type),
ALLOW_THIS_IN_INITIALIZER_LIST(listener_(this)),
resource_dispatcher_host_(resource_dispatcher_host),
opening_channel_(false),
process_event_(NULL) {
Singleton<ChildProcessList>::get()->push_back(this);

View File

@ -12,7 +12,6 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/waitable_event_watcher.h"
class ResourceDispatcherHost;
#include "chrome/common/child_process_info.h"
#include "chrome/common/ipc_channel.h"
@ -52,8 +51,7 @@ class ChildProcessHost :
};
protected:
ChildProcessHost(ProcessType type,
ResourceDispatcherHost* resource_dispatcher_host = 0);
explicit ChildProcessHost(ProcessType type);
// Derived classes return true if it's ok to shut down the child process.
virtual bool CanShutdown() = 0;
@ -106,8 +104,6 @@ class ChildProcessHost :
ListenerHook listener_;
ResourceDispatcherHost* resource_dispatcher_host_;
// True while we're waiting the channel to be opened.
bool opening_channel_;