| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "jingle/glue/task_pump.h" | 7 #include "jingle/glue/task_pump.h" |
| 8 | 8 |
| 9 namespace jingle_glue { | 9 namespace jingle_glue { |
| 10 | 10 |
| 11 TaskPump::TaskPump() | 11 TaskPump::TaskPump() |
| 12 : weak_factory_(this), | 12 : weak_factory_(this), |
| 13 posted_wake_(false), | 13 posted_wake_(false), |
| 14 stopped_(false) {} | 14 stopped_(false) {} |
| 15 | 15 |
| 16 TaskPump::~TaskPump() { | 16 TaskPump::~TaskPump() { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // We shouldn't be using libjingle for timeout tasks, so we should | 50 // We shouldn't be using libjingle for timeout tasks, so we should |
| 51 // have no timeout tasks at all. | 51 // have no timeout tasks at all. |
| 52 | 52 |
| 53 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and | 53 // TODO(akalin): Add HasTimeoutTask() back in TaskRunner class and |
| 54 // uncomment this check. | 54 // uncomment this check. |
| 55 // DCHECK(!HasTimeoutTask()) | 55 // DCHECK(!HasTimeoutTask()) |
| 56 RunTasks(); | 56 RunTasks(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace jingle_glue | 59 } // namespace jingle_glue |
| OLD | NEW |