| 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_sync_channel.h" | 5 #include "ipc/ipc_sync_channel.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | |
| 9 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 10 #include "base/location.h" | 9 #include "base/location.h" |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/synchronization/waitable_event_watcher.h" | 12 #include "base/synchronization/waitable_event_watcher.h" |
| 14 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 15 #include "base/threading/thread_local.h" | 14 #include "base/threading/thread_local.h" |
| 15 #include "base/trace_event/trace_event.h" |
| 16 #include "ipc/ipc_channel_factory.h" | 16 #include "ipc/ipc_channel_factory.h" |
| 17 #include "ipc/ipc_logging.h" | 17 #include "ipc/ipc_logging.h" |
| 18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 19 #include "ipc/ipc_sync_message.h" | 19 #include "ipc/ipc_sync_message.h" |
| 20 | 20 |
| 21 using base::TimeDelta; | 21 using base::TimeDelta; |
| 22 using base::TimeTicks; | 22 using base::TimeTicks; |
| 23 using base::WaitableEvent; | 23 using base::WaitableEvent; |
| 24 | 24 |
| 25 namespace IPC { | 25 namespace IPC { |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 // manual reset since the object watcher might otherwise reset the event | 577 // manual reset since the object watcher might otherwise reset the event |
| 578 // when we're doing a WaitMany. | 578 // when we're doing a WaitMany. |
| 579 dispatch_watcher_callback_ = | 579 dispatch_watcher_callback_ = |
| 580 base::Bind(&SyncChannel::OnWaitableEventSignaled, | 580 base::Bind(&SyncChannel::OnWaitableEventSignaled, |
| 581 base::Unretained(this)); | 581 base::Unretained(this)); |
| 582 dispatch_watcher_.StartWatching(sync_context()->GetDispatchEvent(), | 582 dispatch_watcher_.StartWatching(sync_context()->GetDispatchEvent(), |
| 583 dispatch_watcher_callback_); | 583 dispatch_watcher_callback_); |
| 584 } | 584 } |
| 585 | 585 |
| 586 } // namespace IPC | 586 } // namespace IPC |
| OLD | NEW |