Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: base/message_loop/message_loop.h

Issue 176713005: Remove X11 and GTK dependencies from host_forwarder (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | tools/android/forwarder2/forwarder.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 20 matching lines...) Expand all
31 #elif defined(OS_IOS) 31 #elif defined(OS_IOS)
32 #include "base/message_loop/message_pump_io_ios.h" 32 #include "base/message_loop/message_pump_io_ios.h"
33 #elif defined(OS_POSIX) 33 #elif defined(OS_POSIX)
34 #include "base/message_loop/message_pump_libevent.h" 34 #include "base/message_loop/message_pump_libevent.h"
35 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) 35 #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
36 36
37 #if defined(USE_AURA) && defined(USE_X11) && !defined(OS_NACL) 37 #if defined(USE_AURA) && defined(USE_X11) && !defined(OS_NACL)
38 #include "base/message_loop/message_pump_x11.h" 38 #include "base/message_loop/message_pump_x11.h"
39 #elif defined(USE_OZONE) && !defined(OS_NACL) 39 #elif defined(USE_OZONE) && !defined(OS_NACL)
40 #include "base/message_loop/message_pump_ozone.h" 40 #include "base/message_loop/message_pump_ozone.h"
41 #else 41 #elif !defined(OS_ANDROID_HOST)
42 #define USE_GTK_MESSAGE_PUMP 42 #define USE_GTK_MESSAGE_PUMP
43 #include "base/message_loop/message_pump_gtk.h" 43 #include "base/message_loop/message_pump_gtk.h"
44 #if defined(TOOLKIT_GTK) 44 #if defined(TOOLKIT_GTK)
45 #include "base/message_loop/message_pump_x11.h" 45 #include "base/message_loop/message_pump_x11.h"
46 #endif 46 #endif
47 #endif 47 #endif
48 48
49 #endif 49 #endif
50 #endif 50 #endif
51 51
52 namespace base { 52 namespace base {
53 53
54 class HistogramBase; 54 class HistogramBase;
55 class MessagePumpObserver; 55 class MessagePumpObserver;
56 class RunLoop; 56 class RunLoop;
57 class ThreadTaskRunnerHandle; 57 class ThreadTaskRunnerHandle;
58 #if defined(OS_ANDROID) 58 #if defined(OS_ANDROID)
59 class MessagePumpForUI; 59 class MessagePumpForUI;
60 #elif defined(OS_ANDROID_HOST)
61 typedef MessagePumpLibevent MessagePumpForUI;
60 #endif 62 #endif
61 class WaitableEvent; 63 class WaitableEvent;
62 64
63 // A MessageLoop is used to process events for a particular thread. There is 65 // A MessageLoop is used to process events for a particular thread. There is
64 // at most one MessageLoop instance per thread. 66 // at most one MessageLoop instance per thread.
65 // 67 //
66 // Events include at a minimum Task instances submitted to PostTask and its 68 // Events include at a minimum Task instances submitted to PostTask and its
67 // variants. Depending on the type of message pump used by the MessageLoop 69 // variants. Depending on the type of message pump used by the MessageLoop
68 // other events such as UI messages may be processed. On Windows APC calls (as 70 // other events such as UI messages may be processed. On Windows APC calls (as
69 // time permits) and signals sent to a registered set of HANDLEs may also be 71 // time permits) and signals sent to a registered set of HANDLEs may also be
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 712
711 // Do not add any member variables to MessageLoopForIO! This is important b/c 713 // Do not add any member variables to MessageLoopForIO! This is important b/c
712 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra 714 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra
713 // data that you need should be stored on the MessageLoop's pump_ instance. 715 // data that you need should be stored on the MessageLoop's pump_ instance.
714 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), 716 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO),
715 MessageLoopForIO_should_not_have_extra_member_variables); 717 MessageLoopForIO_should_not_have_extra_member_variables);
716 718
717 } // namespace base 719 } // namespace base
718 720
719 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 721 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | tools/android/forwarder2/forwarder.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698