| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome_frame/task_marshaller.h" | 5 #include "chrome_frame/task_marshaller.h" |
| 6 #include "base/task.h" | 6 |
| 7 #include "base/callback.h" |
| 8 #include "base/logging.h" |
| 7 | 9 |
| 8 TaskMarshallerThroughMessageQueue::TaskMarshallerThroughMessageQueue() | 10 TaskMarshallerThroughMessageQueue::TaskMarshallerThroughMessageQueue() |
| 9 : wnd_(NULL), | 11 : wnd_(NULL), |
| 10 msg_(0xFFFF) { | 12 msg_(0xFFFF) { |
| 11 } | 13 } |
| 12 | 14 |
| 13 TaskMarshallerThroughMessageQueue::~TaskMarshallerThroughMessageQueue() { | 15 TaskMarshallerThroughMessageQueue::~TaskMarshallerThroughMessageQueue() { |
| 14 ClearTasks(); | 16 ClearTasks(); |
| 15 } | 17 } |
| 16 | 18 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 base::AutoLock lock(lock_); | 127 base::AutoLock lock(lock_); |
| 126 DVLOG_IF(1, !pending_tasks_.empty()) << "Destroying " | 128 DVLOG_IF(1, !pending_tasks_.empty()) << "Destroying " |
| 127 << pending_tasks_.size() | 129 << pending_tasks_.size() |
| 128 << " pending tasks."; | 130 << " pending tasks."; |
| 129 while (!pending_tasks_.empty()) | 131 while (!pending_tasks_.empty()) |
| 130 pending_tasks_.pop(); | 132 pending_tasks_.pop(); |
| 131 | 133 |
| 132 while (!delayed_tasks_.empty()) | 134 while (!delayed_tasks_.empty()) |
| 133 delayed_tasks_.pop(); | 135 delayed_tasks_.pop(); |
| 134 } | 136 } |
| OLD | NEW |