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

Unified Diff: remoting/signaling/log_to_server.h

Issue 2911893003: Deprecate NonThreadSafe in remoting 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 | « remoting/signaling/fake_signal_strategy.cc ('k') | remoting/signaling/log_to_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/log_to_server.h
diff --git a/remoting/signaling/log_to_server.h b/remoting/signaling/log_to_server.h
index 6986c81631cf5301b07741e93b4bc1d98122411b..27462681df6101fa815940164ed1a009fe110eab 100644
--- a/remoting/signaling/log_to_server.h
+++ b/remoting/signaling/log_to_server.h
@@ -10,7 +10,7 @@
#include <string>
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "remoting/signaling/server_log_entry.h"
#include "remoting/signaling/signal_strategy.h"
@@ -25,8 +25,7 @@ class IqSender;
// LogToServer sends log entries to a server.
// The contents of the log entries are described in server_log_entry.cc.
// They do not contain any personally identifiable information.
-class LogToServer : public base::NonThreadSafe,
- public SignalStrategy::Listener {
+class LogToServer : public SignalStrategy::Listener {
public:
LogToServer(ServerLogEntry::Mode mode,
SignalStrategy* signal_strategy,
@@ -51,6 +50,8 @@ class LogToServer : public base::NonThreadSafe,
std::deque<ServerLogEntry> pending_entries_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(LogToServer);
};
« no previous file with comments | « remoting/signaling/fake_signal_strategy.cc ('k') | remoting/signaling/log_to_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698