| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUMP_GLIB_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ |
| 7 | 7 |
| 8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_pump.h" | 10 #include "base/message_loop/message_pump.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // mechanism g_main_context_wakeup, but this won't guarantee that our event's | 87 // mechanism g_main_context_wakeup, but this won't guarantee that our event's |
| 88 // Dispatch() will be called. | 88 // Dispatch() will be called. |
| 89 int wakeup_pipe_read_; | 89 int wakeup_pipe_read_; |
| 90 int wakeup_pipe_write_; | 90 int wakeup_pipe_write_; |
| 91 // Use a scoped_ptr to avoid needing the definition of GPollFD in the header. | 91 // Use a scoped_ptr to avoid needing the definition of GPollFD in the header. |
| 92 scoped_ptr<GPollFD> wakeup_gpollfd_; | 92 scoped_ptr<GPollFD> wakeup_gpollfd_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlib); | 94 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlib); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 typedef MessagePumpGlib MessagePumpForUI; |
| 98 |
| 97 } // namespace base | 99 } // namespace base |
| 98 | 100 |
| 99 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ | 101 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ |
| OLD | NEW |