OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ | 5 #ifndef REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ |
6 #define REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ | 6 #define REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
16 #include "extensions/browser/api/messaging/native_messaging_channel.h" | 16 #include "extensions/browser/api/messaging/native_messaging_channel.h" |
17 #include "remoting/host/native_messaging/native_messaging_reader.h" | 17 #include "remoting/host/native_messaging/native_messaging_reader.h" |
18 #include "remoting/host/native_messaging/native_messaging_writer.h" | 18 #include "remoting/host/native_messaging/native_messaging_writer.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class DictionaryValue; | |
22 class Value; | 21 class Value; |
23 } // namespace base | 22 } // namespace base |
24 | 23 |
25 namespace remoting { | 24 namespace remoting { |
26 | 25 |
27 // An implementation of extensions::NativeMessagingChannel using a pipe. It | 26 // An implementation of extensions::NativeMessagingChannel using a pipe. It |
28 // is used by the It2MeNativeMessagingHost and Me2MeNativeMessagingHost to | 27 // is used by the It2MeNativeMessagingHost and Me2MeNativeMessagingHost to |
29 // communicate with the chrome process. | 28 // communicate with the chrome process. |
30 // TODO(kelvinp): Move this class to the extensions/browser/api/messaging | 29 // TODO(kelvinp): Move this class to the extensions/browser/api/messaging |
31 // directory. | 30 // directory. |
(...skipping 24 matching lines...) Expand all Loading... |
56 EventHandler* event_handler_; | 55 EventHandler* event_handler_; |
57 base::WeakPtr<PipeMessagingChannel> weak_ptr_; | 56 base::WeakPtr<PipeMessagingChannel> weak_ptr_; |
58 base::WeakPtrFactory<PipeMessagingChannel> weak_factory_; | 57 base::WeakPtrFactory<PipeMessagingChannel> weak_factory_; |
59 | 58 |
60 DISALLOW_COPY_AND_ASSIGN(PipeMessagingChannel); | 59 DISALLOW_COPY_AND_ASSIGN(PipeMessagingChannel); |
61 }; | 60 }; |
62 | 61 |
63 } // namespace remoting | 62 } // namespace remoting |
64 | 63 |
65 #endif // REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ | 64 #endif // REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_ |
OLD | NEW |