Chromium Code Reviews| Index: base/message_pump.h |
| diff --git a/base/message_pump.h b/base/message_pump.h |
| index b2e0a425656c6962f7d960d3637e68eab48cab36..138ad44f6e397ba9a567b6ad8a30969ade788df1 100644 |
| --- a/base/message_pump.h |
| +++ b/base/message_pump.h |
| @@ -119,6 +119,11 @@ class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { |
| // used on the thread that called Run. |
| virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; |
| + // Stops the pump and frees any resources that must to be freed on the thread |
| + // that called Run(). This method should be called on the same thread that |
| + // called Run(). |
| + virtual void Stop() = 0; |
|
darin (slow to review)
2013/06/18 18:28:42
It is perhaps confusing to have a method named Qui
alexeypa (please no reviews)
2013/06/18 19:44:23
Done.
|
| + |
| protected: |
| virtual ~MessagePump(); |
| friend class RefCountedThreadSafe<MessagePump>; |