| 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 "chrome/browser/sync/notifier/base/task_pump.h" | 5 #include "chrome/common/net/notifier/base/task_pump.h" |
| 6 #include "chrome/browser/sync/notifier/base/time.h" | 6 #include "chrome/common/net/notifier/base/time.h" |
| 7 #include "talk/base/common.h" | 7 #include "talk/base/common.h" |
| 8 #include "talk/base/thread.h" | 8 #include "talk/base/thread.h" |
| 9 | 9 |
| 10 namespace notifier { | 10 namespace notifier { |
| 11 | 11 |
| 12 // Don't add any messages because there are cleared and thrown away. | 12 // Don't add any messages because there are cleared and thrown away. |
| 13 enum { MSG_WAKE_UP = 1, MSG_TIMED_WAKE_UP }; | 13 enum { MSG_WAKE_UP = 1, MSG_TIMED_WAKE_UP }; |
| 14 | 14 |
| 15 TaskPump::TaskPump() : timeout_change_count_(0), posted_(false) { | 15 TaskPump::TaskPump() : timeout_change_count_(0), posted_(false) { |
| 16 } | 16 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 talk_base::Thread::Current()->Post(this, MSG_WAKE_UP); | 32 talk_base::Thread::Current()->Post(this, MSG_WAKE_UP); |
| 33 posted_ = true; | 33 posted_ = true; |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 int64 TaskPump::CurrentTime() { | 37 int64 TaskPump::CurrentTime() { |
| 38 return GetCurrent100NSTime(); | 38 return GetCurrent100NSTime(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace notifier | 41 } // namespace notifier |
| OLD | NEW |