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

Unified Diff: content/common/child_process_host_impl.cc

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing compilation errors Created 6 years, 6 months 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
Index: content/common/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index 1dccab0838504ffffcf51186cfaf5d23b451b06d..3c46b64fb062ba5d9aa336ffe324cd331179e932 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -144,7 +144,7 @@ ChildProcessHostImpl::ChildProcessHostImpl(ChildProcessHostDelegate* delegate)
ChildProcessHostImpl::~ChildProcessHostImpl() {
for (size_t i = 0; i < filters_.size(); ++i) {
- filters_[i]->OnChannelClosing();
+ filters_[i]->OnSenderClosing();
filters_[i]->OnFilterRemoved();
}
@@ -278,7 +278,7 @@ void ChildProcessHostImpl::OnChannelConnected(int32 peer_pid) {
opening_channel_ = false;
delegate_->OnChannelConnected(peer_pid);
for (size_t i = 0; i < filters_.size(); ++i)
- filters_[i]->OnChannelConnected(peer_pid);
+ filters_[i]->OnSenderConnected();
}
void ChildProcessHostImpl::OnChannelError() {
@@ -286,7 +286,7 @@ void ChildProcessHostImpl::OnChannelError() {
delegate_->OnChannelError();
for (size_t i = 0; i < filters_.size(); ++i)
- filters_[i]->OnChannelError();
+ filters_[i]->OnSenderError();
// This will delete host_, which will also destroy this!
delegate_->OnChildDisconnected();

Powered by Google App Engine
This is Rietveld 408576698