| 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_ANDROID_H_ | 5 #ifndef BASE_MESSAGE_PUMP_ANDROID_H_ |
| 6 #define BASE_MESSAGE_PUMP_ANDROID_H_ | 6 #define BASE_MESSAGE_PUMP_ANDROID_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 virtual ~MessagePumpForUI(); | 21 virtual ~MessagePumpForUI(); |
| 22 | 22 |
| 23 virtual void Run(Delegate* delegate) OVERRIDE; | 23 virtual void Run(Delegate* delegate) OVERRIDE; |
| 24 virtual void Quit() OVERRIDE; | 24 virtual void Quit() OVERRIDE; |
| 25 virtual void ScheduleWork() OVERRIDE; | 25 virtual void ScheduleWork() OVERRIDE; |
| 26 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) OVERRIDE; | 26 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) OVERRIDE; |
| 27 | 27 |
| 28 virtual void Start(Delegate* delegate); | 28 virtual void Start(Delegate* delegate); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 MessageLoop::AutoRunState* state_; | 31 MessageLoop::RunLoop* run_loop_; |
| 32 | 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); | 33 DISALLOW_COPY_AND_ASSIGN(MessagePumpForUI); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace base | 36 } // namespace base |
| 37 | 37 |
| 38 #endif // BASE_MESSAGE_PUMP_ANDROID_H_ | 38 #endif // BASE_MESSAGE_PUMP_ANDROID_H_ |
| OLD | NEW |