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/message_loop/timer_slack.h" | 9 #include "base/message_loop/timer_slack.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // until it returns a value of false. | 117 // until it returns a value of false. |
118 virtual void ScheduleWork() = 0; | 118 virtual void ScheduleWork() = 0; |
119 | 119 |
120 // Schedule a DoDelayedWork callback to happen at the specified time, | 120 // Schedule a DoDelayedWork callback to happen at the specified time, |
121 // cancelling any pending DoDelayedWork callback. This method may only be | 121 // cancelling any pending DoDelayedWork callback. This method may only be |
122 // used on the thread that called Run. | 122 // used on the thread that called Run. |
123 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; | 123 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; |
124 | 124 |
125 // Sets the timer slack to the specified value. | 125 // Sets the timer slack to the specified value. |
126 virtual void SetTimerSlack(TimerSlack timer_slack); | 126 virtual void SetTimerSlack(TimerSlack timer_slack); |
127 | |
128 #if defined(OS_WIN) | |
129 // TODO (stanisc): crbug.com/596190: Remove this after the signaling issue | |
130 // has been investigated. | |
131 // This should be used for diagnostic only. If message pump wake-up mechanism | |
132 // is based on auto-reset event this call would reset the event to unset | |
133 // state. | |
134 virtual bool WasSignaled(); | |
135 #endif | |
136 }; | 127 }; |
137 | 128 |
138 } // namespace base | 129 } // namespace base |
139 | 130 |
140 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ | 131 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
OLD | NEW |