| 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 "jingle/notifier/base/task_pump.h" |
| 7 | 7 |
| 8 namespace notifier { | 8 namespace notifier { |
| 9 | 9 |
| 10 TaskPump::TaskPump() | 10 TaskPump::TaskPump() |
| 11 : scoped_runnable_method_factory_( | 11 : scoped_runnable_method_factory_( |
| 12 ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 12 ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 13 posted_wake_(false) {} | 13 posted_wake_(false) {} |
| 14 | 14 |
| 15 TaskPump::~TaskPump() {} | 15 TaskPump::~TaskPump() {} |
| 16 | 16 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 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 | 38 |
| 39 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and | 39 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and |
| 40 // uncomment this check. | 40 // uncomment this check. |
| 41 // DCHECK(!HasTimeoutTask()) | 41 // DCHECK(!HasTimeoutTask()) |
| 42 RunTasks(); | 42 RunTasks(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace notifier | 45 } // namespace notifier |
| OLD | NEW |