OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef BASE_MESSAGE_LOOP_H_ |
6 #define BASE_MESSAGE_LOOP_H_ | 6 #define BASE_MESSAGE_LOOP_H_ |
7 | 7 |
8 #include <deque> | |
9 #include <queue> | 8 #include <queue> |
10 #include <string> | 9 #include <string> |
11 #include <vector> | |
12 | 10 |
13 #include "base/histogram.h" | 11 #include "base/histogram.h" |
14 #include "base/message_pump.h" | 12 #include "base/message_pump.h" |
15 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
16 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
17 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
18 #include "base/task.h" | 16 #include "base/task.h" |
19 #include "base/timer.h" | |
20 | 17 |
21 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
22 // We need this to declare base::MessagePumpWin::Dispatcher, which we should | 19 // We need this to declare base::MessagePumpWin::Dispatcher, which we should |
23 // really just eliminate. | 20 // really just eliminate. |
24 #include "base/message_pump_win.h" | 21 #include "base/message_pump_win.h" |
25 #elif defined(OS_POSIX) | 22 #elif defined(OS_POSIX) |
26 #include "base/message_pump_libevent.h" | 23 #include "base/message_pump_libevent.h" |
27 #endif | 24 #endif |
28 #if defined(OS_LINUX) | 25 #if defined(OS_LINUX) |
29 #include "base/message_pump_glib.h" | 26 #include "base/message_pump_glib.h" |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 #endif // defined(OS_POSIX) | 502 #endif // defined(OS_POSIX) |
506 }; | 503 }; |
507 | 504 |
508 // Do not add any member variables to MessageLoopForIO! This is important b/c | 505 // Do not add any member variables to MessageLoopForIO! This is important b/c |
509 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra | 506 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra |
510 // data that you need should be stored on the MessageLoop's pump_ instance. | 507 // data that you need should be stored on the MessageLoop's pump_ instance. |
511 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), | 508 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), |
512 MessageLoopForIO_should_not_have_extra_member_variables); | 509 MessageLoopForIO_should_not_have_extra_member_variables); |
513 | 510 |
514 #endif // BASE_MESSAGE_LOOP_H_ | 511 #endif // BASE_MESSAGE_LOOP_H_ |
OLD | NEW |