| 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 #ifndef JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ | 5 #ifndef JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ |
| 6 #define JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ | 6 #define JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/task.h" | |
| 11 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| 12 #include "talk/base/taskrunner.h" | 11 #include "talk/base/taskrunner.h" |
| 13 | 12 |
| 14 namespace notifier { | 13 namespace notifier { |
| 15 | 14 |
| 16 class TaskPump : public talk_base::TaskRunner { | 15 class TaskPump : public talk_base::TaskRunner { |
| 17 public: | 16 public: |
| 18 TaskPump(); | 17 TaskPump(); |
| 19 | 18 |
| 20 virtual ~TaskPump(); | 19 virtual ~TaskPump(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 base::WeakPtrFactory<TaskPump> weak_factory_; | 33 base::WeakPtrFactory<TaskPump> weak_factory_; |
| 35 bool posted_wake_; | 34 bool posted_wake_; |
| 36 bool stopped_; | 35 bool stopped_; |
| 37 | 36 |
| 38 DISALLOW_COPY_AND_ASSIGN(TaskPump); | 37 DISALLOW_COPY_AND_ASSIGN(TaskPump); |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 } // namespace notifier | 40 } // namespace notifier |
| 42 | 41 |
| 43 #endif // JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ | 42 #endif // JINGLE_NOTIFIER_BASE_TASK_PUMP_H_ |
| OLD | NEW |