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

Unified Diff: base/message_loop.h

Issue 8623: Lint message loop code (added explicit to a class definition)... (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698