Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ipc/ipc_channel_proxy.h" | 5 #include "ipc/ipc_channel_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 // TODO(pkasting): Remove ScopedTracker below once crbug.com/477117 is fixed. | 205 // TODO(pkasting): Remove ScopedTracker below once crbug.com/477117 is fixed. |
| 206 tracked_objects::ScopedTracker tracking_profile( | 206 tracked_objects::ScopedTracker tracking_profile( |
| 207 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 207 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| 208 "477117 ChannelProxy::Context::OnChannelClosed")); | 208 "477117 ChannelProxy::Context::OnChannelClosed")); |
| 209 // It's okay for IPC::ChannelProxy::Close to be called more than once, which | 209 // It's okay for IPC::ChannelProxy::Close to be called more than once, which |
| 210 // would result in this branch being taken. | 210 // would result in this branch being taken. |
| 211 if (!channel_) | 211 if (!channel_) |
| 212 return; | 212 return; |
| 213 | 213 |
| 214 for (auto& filter : pending_filters_) { | 214 for (auto& filter : pending_filters_) { |
| 215 filter->OnFilterAdded(nullptr); | |
|
Ken Rockot(use gerrit already)
2016/11/10 00:49:55
nit: I think it's worth adding a comment here to c
tzik
2016/11/10 06:17:41
Done.
| |
| 216 filter->OnChannelConnected(peer_pid_); | |
| 215 filter->OnChannelClosing(); | 217 filter->OnChannelClosing(); |
| 216 filter->OnFilterRemoved(); | 218 filter->OnFilterRemoved(); |
| 217 } | 219 } |
| 218 for (auto& filter : filters_) { | 220 for (auto& filter : filters_) { |
| 219 filter->OnChannelClosing(); | 221 filter->OnChannelClosing(); |
| 220 filter->OnFilterRemoved(); | 222 filter->OnFilterRemoved(); |
| 221 } | 223 } |
| 222 | 224 |
| 223 // We don't need the filters anymore. | 225 // We don't need the filters anymore. |
| 224 message_filter_router_->Clear(); | 226 message_filter_router_->Clear(); |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 650 return channel->TakeClientFileDescriptor(); | 652 return channel->TakeClientFileDescriptor(); |
| 651 } | 653 } |
| 652 #endif | 654 #endif |
| 653 | 655 |
| 654 void ChannelProxy::OnChannelInit() { | 656 void ChannelProxy::OnChannelInit() { |
| 655 } | 657 } |
| 656 | 658 |
| 657 //----------------------------------------------------------------------------- | 659 //----------------------------------------------------------------------------- |
| 658 | 660 |
| 659 } // namespace IPC | 661 } // namespace IPC |
| OLD | NEW |