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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
17 #include "base/message_loop/message_pump.h" | 17 #include "base/message_loop/message_pump.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/pending_task.h" | 19 #include "base/pending_task.h" |
20 #include "base/sequenced_task_runner_helpers.h" | 20 #include "base/sequenced_task_runner_helpers.h" |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
| 22 #include "base/time/time.h" |
22 #include "base/tracking_info.h" | 23 #include "base/tracking_info.h" |
23 #include "base/time.h" | |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 // We need this to declare base::MessagePumpWin::Dispatcher, which we should | 26 // We need this to declare base::MessagePumpWin::Dispatcher, which we should |
27 // really just eliminate. | 27 // really just eliminate. |
28 #include "base/message_loop/message_pump_win.h" | 28 #include "base/message_loop/message_pump_win.h" |
29 #elif defined(OS_IOS) | 29 #elif defined(OS_IOS) |
30 #include "base/message_loop/message_pump_io_ios.h" | 30 #include "base/message_loop/message_pump_io_ios.h" |
31 #elif defined(OS_POSIX) | 31 #elif defined(OS_POSIX) |
32 #include "base/message_loop/message_pump_libevent.h" | 32 #include "base/message_loop/message_pump_libevent.h" |
33 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) | 33 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 | 720 |
721 // Do not add any member variables to MessageLoopForIO! This is important b/c | 721 // Do not add any member variables to MessageLoopForIO! This is important b/c |
722 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra | 722 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra |
723 // data that you need should be stored on the MessageLoop's pump_ instance. | 723 // data that you need should be stored on the MessageLoop's pump_ instance. |
724 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), | 724 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
725 MessageLoopForIO_should_not_have_extra_member_variables); | 725 MessageLoopForIO_should_not_have_extra_member_variables); |
726 | 726 |
727 } // namespace base | 727 } // namespace base |
728 | 728 |
729 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ | 729 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ |
OLD | NEW |