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); |