| 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 #ifndef JINGLE_GLUE_TASK_PUMP_H_ | 5 #ifndef JINGLE_GLUE_TASK_PUMP_H_ |
| 6 #define JINGLE_GLUE_TASK_PUMP_H_ | 6 #define JINGLE_GLUE_TASK_PUMP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 14 #include "third_party/webrtc/base/taskrunner.h" | 14 #include "third_party/libjingle_xmpp/task_runner/taskrunner.h" |
| 15 | 15 |
| 16 namespace jingle_glue { | 16 namespace jingle_glue { |
| 17 | 17 |
| 18 // rtc::TaskRunner implementation that works on chromium threads. | 18 // rtc::TaskRunner implementation that works on chromium threads. |
| 19 class TaskPump : public rtc::TaskRunner, public base::NonThreadSafe { | 19 class TaskPump : public rtc::TaskRunner, public base::NonThreadSafe { |
| 20 public: | 20 public: |
| 21 TaskPump(); | 21 TaskPump(); |
| 22 | 22 |
| 23 ~TaskPump() override; | 23 ~TaskPump() override; |
| 24 | 24 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 bool stopped_; | 37 bool stopped_; |
| 38 | 38 |
| 39 base::WeakPtrFactory<TaskPump> weak_factory_; | 39 base::WeakPtrFactory<TaskPump> weak_factory_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(TaskPump); | 41 DISALLOW_COPY_AND_ASSIGN(TaskPump); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace jingle_glue | 44 } // namespace jingle_glue |
| 45 | 45 |
| 46 #endif // JINGLE_GLUE_TASK_PUMP_H_ | 46 #endif // JINGLE_GLUE_TASK_PUMP_H_ |
| OLD | NEW |