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

Unified Diff: remoting/host/native_messaging/pipe_messaging_channel.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/host/local_input_monitor_x11.cc ('k') | remoting/host/native_messaging/pipe_messaging_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/native_messaging/pipe_messaging_channel.h
diff --git a/remoting/host/native_messaging/pipe_messaging_channel.h b/remoting/host/native_messaging/pipe_messaging_channel.h
index 685ce999dbb0d0e7b03ac81ef52e1e2bff29e36b..4ebd2f444d858235dfe1e387ed046f6e87cb0c12 100644
--- a/remoting/host/native_messaging/pipe_messaging_channel.h
+++ b/remoting/host/native_messaging/pipe_messaging_channel.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "extensions/browser/api/messaging/native_messaging_channel.h"
#include "remoting/host/native_messaging/native_messaging_reader.h"
#include "remoting/host/native_messaging/native_messaging_writer.h"
@@ -28,8 +28,7 @@ namespace remoting {
// communicate with the chrome process.
// TODO(kelvinp): Move this class to the extensions/browser/api/messaging
// directory.
-class PipeMessagingChannel : public extensions::NativeMessagingChannel,
- public base::NonThreadSafe {
+class PipeMessagingChannel : public extensions::NativeMessagingChannel {
public:
typedef extensions::NativeMessagingChannel::EventHandler EventHandler;
@@ -54,6 +53,9 @@ class PipeMessagingChannel : public extensions::NativeMessagingChannel,
EventHandler* event_handler_;
base::WeakPtr<PipeMessagingChannel> weak_ptr_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<PipeMessagingChannel> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PipeMessagingChannel);
« no previous file with comments | « remoting/host/local_input_monitor_x11.cc ('k') | remoting/host/native_messaging/pipe_messaging_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698