| 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_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
| 7 | 7 |
| 8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/message_loop/timer_slack.h" | 9 #include "base/message_loop/timer_slack.h" |
| 11 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| 12 | 11 |
| 13 namespace base { | 12 namespace base { |
| 14 | 13 |
| 15 class TimeTicks; | 14 class TimeTicks; |
| 16 | 15 |
| 17 class BASE_EXPORT MessagePump : public NonThreadSafe { | 16 class BASE_EXPORT MessagePump : public NonThreadSafe { |
| 18 public: | 17 public: |
| 19 // Please see the comments above the Run method for an illustration of how | 18 // Please see the comments above the Run method for an illustration of how |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // used on the thread that called Run. | 122 // used on the thread that called Run. |
| 124 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; | 123 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; |
| 125 | 124 |
| 126 // Sets the timer slack to the specified value. | 125 // Sets the timer slack to the specified value. |
| 127 virtual void SetTimerSlack(TimerSlack timer_slack); | 126 virtual void SetTimerSlack(TimerSlack timer_slack); |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace base | 129 } // namespace base |
| 131 | 130 |
| 132 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ | 131 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
| OLD | NEW |