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

Unified Diff: remoting/protocol/stream_channel_factory.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/protocol/ssl_hmac_channel_authenticator.cc ('k') | remoting/signaling/fake_signal_strategy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/stream_channel_factory.h
diff --git a/remoting/protocol/stream_channel_factory.h b/remoting/protocol/stream_channel_factory.h
index a28b0272beb98f90e95f06b6ab446b29f1aedf85..e078659a6b31ebd19a6e6a261b3eadde6cb2a775 100644
--- a/remoting/protocol/stream_channel_factory.h
+++ b/remoting/protocol/stream_channel_factory.h
@@ -10,14 +10,14 @@
#include "base/callback.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
namespace remoting {
namespace protocol {
class P2PStreamSocket;
-class StreamChannelFactory : public base::NonThreadSafe {
+class StreamChannelFactory {
public:
// TODO(sergeyu): Specify connection error code when channel
// connection fails.
@@ -42,6 +42,8 @@ class StreamChannelFactory : public base::NonThreadSafe {
protected:
virtual ~StreamChannelFactory() {}
+ SEQUENCE_CHECKER(sequence_checker_);
+
private:
DISALLOW_COPY_AND_ASSIGN(StreamChannelFactory);
};
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator.cc ('k') | remoting/signaling/fake_signal_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698