OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTOCOL_CHANNEL_MULTIPLEXER_H_ | 5 #ifndef REMOTING_PROTOCOL_CHANNEL_MULTIPLEXER_H_ |
6 #define REMOTING_PROTOCOL_CHANNEL_MULTIPLEXER_H_ | 6 #define REMOTING_PROTOCOL_CHANNEL_MULTIPLEXER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "remoting/base/buffered_socket_writer.h" |
9 #include "remoting/proto/mux.pb.h" | 10 #include "remoting/proto/mux.pb.h" |
10 #include "remoting/protocol/buffered_socket_writer.h" | |
11 #include "remoting/protocol/message_reader.h" | 11 #include "remoting/protocol/message_reader.h" |
12 #include "remoting/protocol/protobuf_message_parser.h" | 12 #include "remoting/protocol/protobuf_message_parser.h" |
13 #include "remoting/protocol/stream_channel_factory.h" | 13 #include "remoting/protocol/stream_channel_factory.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 namespace protocol { | 16 namespace protocol { |
17 | 17 |
18 class ChannelMultiplexer : public StreamChannelFactory { | 18 class ChannelMultiplexer : public StreamChannelFactory { |
19 public: | 19 public: |
20 static const char kMuxChannelName[]; | 20 static const char kMuxChannelName[]; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 base::WeakPtrFactory<ChannelMultiplexer> weak_factory_; | 85 base::WeakPtrFactory<ChannelMultiplexer> weak_factory_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(ChannelMultiplexer); | 87 DISALLOW_COPY_AND_ASSIGN(ChannelMultiplexer); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace protocol | 90 } // namespace protocol |
91 } // namespace remoting | 91 } // namespace remoting |
92 | 92 |
93 | 93 |
94 #endif // REMOTING_PROTOCOL_CHANNEL_MULTIPLEXER_H_ | 94 #endif // REMOTING_PROTOCOL_CHANNEL_MULTIPLEXER_H_ |
OLD | NEW |