Bug 1277705 - Remove ChildProcessHost::InstanceCreated (r=dvander)

This commit is contained in:
Bill McCloskey 2016-06-01 16:02:59 -07:00
parent ab96df2b7a
commit f20d7b5ed6
2 changed files with 1 additions and 18 deletions

View File

@ -113,10 +113,6 @@ void ChildProcessHost::SetHandle(base::ProcessHandle process) {
#endif
}
void ChildProcessHost::InstanceCreated() {
Notify(NotificationType(NotificationType::CHILD_INSTANCE_CREATED));
}
bool ChildProcessHost::Send(IPC::Message* msg) {
if (!channel_.get()) {
delete msg;
@ -157,17 +153,7 @@ ChildProcessHost::ListenerHook::ListenerHook(ChildProcessHost* host)
void ChildProcessHost::ListenerHook::OnMessageReceived(
IPC::Message&& msg) {
bool msg_is_ok = true;
bool handled = false;
if (!handled) {
host_->OnMessageReceived(mozilla::Move(msg));
}
if (!msg_is_ok)
base::KillProcess(host_->handle(), ResultCodes::KILLED_BAD_MESSAGE, false);
host_->OnMessageReceived(mozilla::Move(msg));
}
void ChildProcessHost::ListenerHook::OnChannelConnected(int32_t peer_pid) {

View File

@ -73,9 +73,6 @@ class ChildProcessHost :
// ChildProcessHost using this function.
void SetHandle(base::ProcessHandle handle);
// Notifies us that an instance has been created on this child process.
void InstanceCreated();
// IPC::Channel::Listener implementation:
virtual void OnMessageReceived(IPC::Message&& msg) { }
virtual void OnChannelConnected(int32_t peer_pid) { }