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_PUMP_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
6 #define BASE_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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 | 12 |
13 class TimeTicks; | 13 class TimeTicks; |
14 | 14 |
15 class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { | 15 class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> { |
16 public: | 16 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // used on the thread that called Run. | 119 // used on the thread that called Run. |
120 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; | 120 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; |
121 | 121 |
122 protected: | 122 protected: |
123 virtual ~MessagePump(); | 123 virtual ~MessagePump(); |
124 friend class RefCountedThreadSafe<MessagePump>; | 124 friend class RefCountedThreadSafe<MessagePump>; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace base | 127 } // namespace base |
128 | 128 |
129 #endif // BASE_MESSAGE_PUMP_H_ | 129 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
OLD | NEW |