summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 18:54:18 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 18:54:18 +0000
commitb099217a85bd514c1e96764e5d75269cd3c2799c (patch)
tree11139014fb50e2290b82135b979bb72a57bc2e19 /base/message_loop.h
parent00b98767e4d5596026f6589c143a7dfea24230f7 (diff)
downloadchromium_src-b099217a85bd514c1e96764e5d75269cd3c2799c.zip
chromium_src-b099217a85bd514c1e96764e5d75269cd3c2799c.tar.gz
chromium_src-b099217a85bd514c1e96764e5d75269cd3c2799c.tar.bz2
Lint message loop code (added explicit to a class definition)
Incidental lint of code noted the need for explicit... so I tossed it in. r=mbelshe Review URL: http://codereview.chromium.org/8623 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index e13d568..4ca6fae 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -97,10 +97,10 @@ class MessageLoop : public base::MessagePump::Delegate {
//
// 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 MessageLoop : public base::MessagePump::Delegate {
class AutoRunState : RunState {
public:
- AutoRunState(MessageLoop* loop);
+ explicit AutoRunState(MessageLoop* loop);
~AutoRunState();
private:
MessageLoop* loop_;
@@ -264,7 +264,7 @@ class MessageLoop : public base::MessagePump::Delegate {
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 @@ class MessageLoop : public base::MessagePump::Delegate {
// 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 @@ class MessageLoopForIO : public MessageLoop {
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)