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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop_proxy_impl.h" | 16 #include "base/message_loop_proxy_impl.h" |
17 #include "base/message_pump_default.h" | 17 #include "base/message_pump_default.h" |
18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
| 19 #include "base/metrics/statistics_recorder.h" |
19 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
20 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 21 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
21 #include "base/thread_task_runner_handle.h" | 22 #include "base/thread_task_runner_handle.h" |
22 #include "base/threading/thread_local.h" | 23 #include "base/threading/thread_local.h" |
23 #include "base/time.h" | 24 #include "base/time.h" |
24 #include "base/tracked_objects.h" | 25 #include "base/tracked_objects.h" |
25 | 26 |
26 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
27 #include "base/message_pump_mac.h" | 28 #include "base/message_pump_mac.h" |
28 #endif | 29 #endif |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 Watcher *delegate) { | 754 Watcher *delegate) { |
754 return pump_libevent()->WatchFileDescriptor( | 755 return pump_libevent()->WatchFileDescriptor( |
755 fd, | 756 fd, |
756 persistent, | 757 persistent, |
757 static_cast<base::MessagePumpLibevent::Mode>(mode), | 758 static_cast<base::MessagePumpLibevent::Mode>(mode), |
758 controller, | 759 controller, |
759 delegate); | 760 delegate); |
760 } | 761 } |
761 | 762 |
762 #endif | 763 #endif |
OLD | NEW |