OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_pump_default.h" | 15 #include "base/message_loop/message_pump_default.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/metrics/statistics_recorder.h" | 17 #include "base/metrics/statistics_recorder.h" |
18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
19 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 19 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
21 #include "base/threading/thread_local.h" | 21 #include "base/threading/thread_local.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
24 #include "base/tracked_objects.h" | 24 #include "base/tracked_objects.h" |
| 25 #include "build/build_config.h" |
25 | 26 |
26 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
27 #include "base/message_loop/message_pump_mac.h" | 28 #include "base/message_loop/message_pump_mac.h" |
28 #endif | 29 #endif |
29 #if defined(OS_POSIX) && !defined(OS_IOS) | 30 #if defined(OS_POSIX) && !defined(OS_IOS) |
30 #include "base/message_loop/message_pump_libevent.h" | 31 #include "base/message_loop/message_pump_libevent.h" |
31 #endif | 32 #endif |
32 #if defined(OS_ANDROID) | 33 #if defined(OS_ANDROID) |
33 #include "base/message_loop/message_pump_android.h" | 34 #include "base/message_loop/message_pump_android.h" |
34 #endif | 35 #endif |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 persistent, | 754 persistent, |
754 mode, | 755 mode, |
755 controller, | 756 controller, |
756 delegate); | 757 delegate); |
757 } | 758 } |
758 #endif | 759 #endif |
759 | 760 |
760 #endif // !defined(OS_NACL_SFI) | 761 #endif // !defined(OS_NACL_SFI) |
761 | 762 |
762 } // namespace base | 763 } // namespace base |
OLD | NEW |