OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_pump.h" | 10 #include "base/message_pump.h" |
10 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
11 #include "base/scoped_ptr.h" | |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 | 13 |
14 typedef union _GdkEvent GdkEvent; | 14 typedef union _GdkEvent GdkEvent; |
15 typedef struct _GMainContext GMainContext; | 15 typedef struct _GMainContext GMainContext; |
16 typedef struct _GPollFD GPollFD; | 16 typedef struct _GPollFD GPollFD; |
17 typedef struct _GSource GSource; | 17 typedef struct _GSource GSource; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 | 20 |
21 // This class implements a MessagePump needed for TYPE_UI MessageLoops on | 21 // This class implements a MessagePump needed for TYPE_UI MessageLoops on |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // List of observers. | 135 // List of observers. |
136 ObserverList<Observer> observers_; | 136 ObserverList<Observer> observers_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); | 138 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace base | 141 } // namespace base |
142 | 142 |
143 #endif // BASE_MESSAGE_PUMP_GLIB_H_ | 143 #endif // BASE_MESSAGE_PUMP_GLIB_H_ |
OLD | NEW |