Index: base/message_loop.h |
=================================================================== |
--- base/message_loop.h (revision 3715) |
+++ base/message_loop.h (working copy) |
@@ -97,10 +97,10 @@ |
// |
// NOTE: These methods may be called on any thread. The Task will be invoked |
// on the thread that executes MessageLoop::Run(). |
- |
+ |
void PostTask( |
const tracked_objects::Location& from_here, Task* task); |
- |
+ |
void PostDelayedTask( |
const tracked_objects::Location& from_here, Task* task, int delay_ms); |
@@ -247,7 +247,7 @@ |
class AutoRunState : RunState { |
public: |
- AutoRunState(MessageLoop* loop); |
+ explicit AutoRunState(MessageLoop* loop); |
~AutoRunState(); |
private: |
MessageLoop* loop_; |
@@ -264,7 +264,7 @@ |
PendingTask(Task* task, bool nestable) |
: task(task), sequence_num(0), nestable(nestable) { |
} |
- |
+ |
// Used to support sorting. |
bool operator<(const PendingTask& other) const; |
}; |
@@ -354,7 +354,7 @@ |
// A list of tasks that need to be processed by this instance. Note that |
// this queue is only accessed (push/pop) by our current thread. |
TaskQueue work_queue_; |
- |
+ |
// Contains delayed tasks, sorted by their 'delayed_run_time' property. |
DelayedTaskQueue delayed_work_queue_; |
@@ -476,7 +476,7 @@ |
typedef base::MessagePumpLibevent::Watcher Watcher; |
// Please see MessagePumpLibevent for definitions of these methods. |
- void WatchSocket(int socket, short interest_mask, |
+ void WatchSocket(int socket, short interest_mask, |
struct event* e, Watcher* watcher); |
void UnwatchSocket(struct event* e); |
#endif // defined(OS_POSIX) |