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

Unified Diff: jingle/glue/task_pump.h

Issue 2913673003: Replace deprecated base::NonThreadSafe in jingle in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | jingle/glue/task_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/task_pump.h
diff --git a/jingle/glue/task_pump.h b/jingle/glue/task_pump.h
index 4f9c28ca5e73d8e9d20abac2d526bbfdec75288e..64325d0c8ba902efd119daf924e5182a07c84794 100644
--- a/jingle/glue/task_pump.h
+++ b/jingle/glue/task_pump.h
@@ -10,13 +10,13 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "third_party/libjingle_xmpp/task_runner/taskrunner.h"
namespace jingle_glue {
// rtc::TaskRunner implementation that works on chromium threads.
-class TaskPump : public rtc::TaskRunner, public base::NonThreadSafe {
+class TaskPump : public rtc::TaskRunner {
public:
TaskPump();
@@ -36,6 +36,8 @@ class TaskPump : public rtc::TaskRunner, public base::NonThreadSafe {
bool posted_wake_;
bool stopped_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<TaskPump> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(TaskPump);
« no previous file with comments | « no previous file | jingle/glue/task_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698