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 "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "remoting/proto/internal.pb.h" | 9 #include "remoting/proto/internal.pb.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 // Sends the |message| or returns false if called before Init(). | 44 // Sends the |message| or returns false if called before Init(). |
45 // Can be called on any thread. | 45 // Can be called on any thread. |
46 bool SendMessage(const ChromotingClientMessage& message); | 46 bool SendMessage(const ChromotingClientMessage& message); |
47 }; | 47 }; |
48 | 48 |
49 class ControlStreamWriter : public StreamWriterBase { | 49 class ControlStreamWriter : public StreamWriterBase { |
50 public: | 50 public: |
51 // Sends the |message| or returns false if called before Init(). | 51 // Sends the |message| or returns false if called before Init(). |
52 // Can be called on any thread. | 52 // Can be called on any thread. |
53 bool SendMessage(const ChromotingHostMessage& message); | 53 bool SendMessage(const ControlMessage& message); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace protocol | 56 } // namespace protocol |
57 } // namespace remoting | 57 } // namespace remoting |
58 | 58 |
59 #endif // REMOTING_PROTOCOL_STREAM_WRITER_H_ | 59 #endif // REMOTING_PROTOCOL_STREAM_WRITER_H_ |
OLD | NEW |