| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_sync_message_filter.h" | 5 #include "ipc/ipc_sync_message_filter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/waitable_event.h" |
| 9 #include "ipc/ipc_sync_message.h" | 10 #include "ipc/ipc_sync_message.h" |
| 10 | 11 |
| 11 namespace IPC { | 12 namespace IPC { |
| 12 | 13 |
| 13 SyncMessageFilter::SyncMessageFilter(base::WaitableEvent* shutdown_event) | 14 SyncMessageFilter::SyncMessageFilter(base::WaitableEvent* shutdown_event) |
| 14 : channel_(NULL), | 15 : channel_(NULL), |
| 15 listener_loop_(MessageLoop::current()), | 16 listener_loop_(MessageLoop::current()), |
| 16 io_loop_(NULL), | 17 io_loop_(NULL), |
| 17 shutdown_event_(shutdown_event) { | 18 shutdown_event_(shutdown_event) { |
| 18 } | 19 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 118 } |
| 118 (*iter)->done_event->Signal(); | 119 (*iter)->done_event->Signal(); |
| 119 return true; | 120 return true; |
| 120 } | 121 } |
| 121 } | 122 } |
| 122 | 123 |
| 123 return false; | 124 return false; |
| 124 } | 125 } |
| 125 | 126 |
| 126 } // namespace IPC | 127 } // namespace IPC |
| OLD | NEW |