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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/synchronization/waitable_event_watcher.h" | 18 #include "base/synchronization/waitable_event_watcher.h" |
19 #include "base/thread_task_runner_handle.h" | |
20 #include "base/threading/thread_local.h" | 19 #include "base/threading/thread_local.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
22 #include "ipc/ipc_channel_factory.h" | 22 #include "ipc/ipc_channel_factory.h" |
23 #include "ipc/ipc_logging.h" | 23 #include "ipc/ipc_logging.h" |
24 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
25 #include "ipc/ipc_sync_message.h" | 25 #include "ipc/ipc_sync_message.h" |
26 | 26 |
27 using base::TimeDelta; | 27 using base::TimeDelta; |
28 using base::TimeTicks; | 28 using base::TimeTicks; |
29 using base::WaitableEvent; | 29 using base::WaitableEvent; |
30 | 30 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 | 599 |
600 void SyncChannel::OnChannelInit() { | 600 void SyncChannel::OnChannelInit() { |
601 for (const auto& filter : pre_init_sync_message_filters_) { | 601 for (const auto& filter : pre_init_sync_message_filters_) { |
602 filter->set_is_channel_send_thread_safe( | 602 filter->set_is_channel_send_thread_safe( |
603 context()->IsChannelSendThreadSafe()); | 603 context()->IsChannelSendThreadSafe()); |
604 } | 604 } |
605 pre_init_sync_message_filters_.clear(); | 605 pre_init_sync_message_filters_.clear(); |
606 } | 606 } |
607 | 607 |
608 } // namespace IPC | 608 } // namespace IPC |
OLD | NEW |