Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Side by Side Diff: jingle/glue/task_pump.h

Issue 2694903005: Add a copy of webrtc's TaskRunner abstraction, which is going to be deleted in webrtc. (Closed)
Patch Set: Delete dependencies on webrtc's rtc_task_runner. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jingle/glue/mock_task.h ('k') | jingle/notifier/communicator/login.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « jingle/glue/mock_task.h ('k') | jingle/notifier/communicator/login.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698