mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1277705
- Remove ChildProcessHost::InstanceCreated (r=dvander)
This commit is contained in:
parent
ab96df2b7a
commit
f20d7b5ed6
@ -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) {
|
||||
|
@ -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) { }
|
||||
|
Loading…
Reference in New Issue
Block a user