OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_PUMP_GLIB_H_ | 5 #ifndef BASE_MESSAGE_PUMP_GLIB_H_ |
6 #define BASE_MESSAGE_PUMP_GLIB_H_ | 6 #define BASE_MESSAGE_PUMP_GLIB_H_ |
7 | 7 |
8 #include <glib.h> | 8 #include <glib.h> |
9 | 9 |
10 #include "base/message_pump.h" | 10 #include "base/message_pump.h" |
11 #include "base/scoped_ptr.h" | |
12 #include "base/time.h" | 11 #include "base/time.h" |
13 | 12 |
14 namespace base { | 13 namespace base { |
15 | 14 |
16 // This class implements a MessagePump needed for TYPE_UI MessageLoops on | 15 // This class implements a MessagePump needed for TYPE_UI MessageLoops on |
17 // OS_LINUX platforms using GLib. | 16 // OS_LINUX platforms using GLib. |
18 class MessagePumpForUI : public MessagePump { | 17 class MessagePumpForUI : public MessagePump { |
19 public: | 18 public: |
20 MessagePumpForUI(); | 19 MessagePumpForUI(); |
21 ~MessagePumpForUI(); | 20 ~MessagePumpForUI(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int wakeup_pipe_read_; | 70 int wakeup_pipe_read_; |
72 int wakeup_pipe_write_; | 71 int wakeup_pipe_write_; |
73 GPollFD wakeup_gpollfd_; | 72 GPollFD wakeup_gpollfd_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); | 74 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace base | 77 } // namespace base |
79 | 78 |
80 #endif // BASE_MESSAGE_PUMP_GLIB_H_ | 79 #endif // BASE_MESSAGE_PUMP_GLIB_H_ |
OLD | NEW |