OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_STREAM_WRITER_H_ | 5 #ifndef REMOTING_PROTOCOL_STREAM_WRITER_H_ |
6 #define REMOTING_PROTOCOL_STREAM_WRITER_H_ | 6 #define REMOTING_PROTOCOL_STREAM_WRITER_H_ |
7 | 7 |
| 8 #include "remoting/proto/internal.pb.h" |
8 #include "remoting/protocol/buffered_socket_writer.h" | 9 #include "remoting/protocol/buffered_socket_writer.h" |
9 #include "remoting/protocol/messages_decoder.h" | |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 class ChromotingConnection; | 13 class ChromotingConnection; |
14 | 14 |
15 class StreamWriterBase { | 15 class StreamWriterBase { |
16 public: | 16 public: |
17 StreamWriterBase(); | 17 StreamWriterBase(); |
18 virtual ~StreamWriterBase(); | 18 virtual ~StreamWriterBase(); |
19 | 19 |
(...skipping 24 matching lines...) Expand all Loading... |
44 class VideoStreamWriter : public StreamWriterBase { | 44 class VideoStreamWriter : public StreamWriterBase { |
45 public: | 45 public: |
46 // Sends the |message| or returns false if called before Init(). | 46 // Sends the |message| or returns false if called before Init(). |
47 // Can be called on any thread. | 47 // Can be called on any thread. |
48 bool SendMessage(const ChromotingHostMessage& message); | 48 bool SendMessage(const ChromotingHostMessage& message); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace remoting | 51 } // namespace remoting |
52 | 52 |
53 #endif // REMOTING_PROTOCOL_STREAM_WRITER_H_ | 53 #endif // REMOTING_PROTOCOL_STREAM_WRITER_H_ |
OLD | NEW |