Index: base/message_loop/message_pump.h |
diff --git a/base/message_loop/message_pump.h b/base/message_loop/message_pump.h |
index 5b722321495240db85ba80a943a1b7b0efe5c332..0ebba3a3e60ccfd07abb2808e2632a254a76747c 100644 |
--- a/base/message_loop/message_pump.h |
+++ b/base/message_loop/message_pump.h |
@@ -6,13 +6,13 @@ |
#define BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
#include "base/base_export.h" |
-#include "base/memory/ref_counted.h" |
+#include "base/threading/non_thread_safe.h" |
namespace base { |
class TimeTicks; |
-class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { |
+class BASE_EXPORT MessagePump : public NonThreadSafe { |
public: |
// Please see the comments above the Run method for an illustration of how |
// these delegate methods are used. |
@@ -42,6 +42,7 @@ class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { |
}; |
MessagePump(); |
+ virtual ~MessagePump(); |
// The Run method is called to enter the message pump's run loop. |
// |
@@ -118,10 +119,6 @@ class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { |
// cancelling any pending DoDelayedWork callback. This method may only be |
// used on the thread that called Run. |
virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; |
- |
- protected: |
- virtual ~MessagePump(); |
- friend class RefCountedThreadSafe<MessagePump>; |
}; |
} // namespace base |