Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3987)

Unified Diff: base/message_pump.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/message_pump.h
===================================================================
--- base/message_pump.h (revision 3954)
+++ base/message_pump.h (working copy)
@@ -7,10 +7,10 @@
#include "base/ref_counted.h"
-class Time;
-
namespace base {
+class Time;
+
class MessagePump : public RefCountedThreadSafe<MessagePump> {
public:
// Please see the comments above the Run method for an illustration of how
@@ -32,7 +32,7 @@
// |next_delayed_work_time| is null (per Time::is_null), then the queue of
// future delayed work (timer events) is currently empty, and no additional
// calls to this function need to be scheduled.
- virtual bool DoDelayedWork(Time* next_delayed_work_time) = 0;
+ virtual bool DoDelayedWork(base::Time* next_delayed_work_time) = 0;
// Called from within Run just before the message pump goes to sleep.
// Returns true to indicate that idle work was done.
@@ -114,10 +114,9 @@
// Schedule a DoDelayedWork callback to happen at the specified time,
// cancelling any pending DoDelayedWork callback. This method may only be
// used on the thread that called Run.
- virtual void ScheduleDelayedWork(const Time& delayed_work_time) = 0;
+ virtual void ScheduleDelayedWork(const base::Time& delayed_work_time) = 0;
};
} // namespace base
#endif // BASE_MESSAGE_PUMP_H_
-
« no previous file with comments | « base/message_loop_unittest.cc ('k') | base/message_pump_default.h » ('j') | base/time_format.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698