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/third_party/dynamic_annotations/dynamic_annotations.h" | 20 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
20 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
21 #include "base/threading/thread_local.h" | 22 #include "base/threading/thread_local.h" |
22 #include "base/time.h" | 23 #include "base/time.h" |
23 #include "base/tracked_objects.h" | 24 #include "base/tracked_objects.h" |
24 | 25 |
25 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
26 #include "base/message_pump_mac.h" | 27 #include "base/message_pump_mac.h" |
27 #endif | 28 #endif |
28 #if defined(OS_POSIX) | 29 #if defined(OS_POSIX) |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 Watcher *delegate) { | 791 Watcher *delegate) { |
791 return pump_libevent()->WatchFileDescriptor( | 792 return pump_libevent()->WatchFileDescriptor( |
792 fd, | 793 fd, |
793 persistent, | 794 persistent, |
794 static_cast<base::MessagePumpLibevent::Mode>(mode), | 795 static_cast<base::MessagePumpLibevent::Mode>(mode), |
795 controller, | 796 controller, |
796 delegate); | 797 delegate); |
797 } | 798 } |
798 | 799 |
799 #endif | 800 #endif |
OLD | NEW |