OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/common/net/notifier/base/task_pump.h" | 6 #include "chrome/common/net/notifier/base/task_pump.h" |
7 | 7 |
8 namespace notifier { | 8 namespace notifier { |
9 | 9 |
10 TaskPump::TaskPump() | 10 TaskPump::TaskPump() |
(...skipping 17 matching lines...) Expand all Loading... |
28 int64 TaskPump::CurrentTime() { | 28 int64 TaskPump::CurrentTime() { |
29 // Only timeout tasks rely on this function. Since we're not using | 29 // Only timeout tasks rely on this function. Since we're not using |
30 // libjingle tasks for timeout, it's safe to return 0 here. | 30 // libjingle tasks for timeout, it's safe to return 0 here. |
31 return 0; | 31 return 0; |
32 } | 32 } |
33 | 33 |
34 void TaskPump::CheckAndRunTasks() { | 34 void TaskPump::CheckAndRunTasks() { |
35 posted_wake_ = false; | 35 posted_wake_ = false; |
36 // We shouldn't be using libjingle for timeout tasks, so we should | 36 // We shouldn't be using libjingle for timeout tasks, so we should |
37 // have no timeout tasks at all. | 37 // have no timeout tasks at all. |
38 DCHECK(!HasTimeoutTask()); | 38 |
| 39 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and |
| 40 // uncomment this check. |
| 41 // DCHECK(!HasTimeoutTask()) |
39 RunTasks(); | 42 RunTasks(); |
40 } | 43 } |
41 | 44 |
42 } // namespace notifier | 45 } // namespace notifier |
OLD | NEW |