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 // ChromotingClient is the controller for the Client implementation. | 5 // ChromotingClient is the controller for the Client implementation. |
6 | 6 |
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Used to serialize sending of messages to the client. | 129 // Used to serialize sending of messages to the client. |
130 std::list<QueuedVideoPacket> received_packets_; | 130 std::list<QueuedVideoPacket> received_packets_; |
131 | 131 |
132 // True if a message is being processed. Can be used to determine if it is | 132 // True if a message is being processed. Can be used to determine if it is |
133 // safe to dispatch another message. | 133 // safe to dispatch another message. |
134 bool packet_being_processed_; | 134 bool packet_being_processed_; |
135 | 135 |
136 // Record the statistics of the connection. | 136 // Record the statistics of the connection. |
137 ChromotingStats stats_; | 137 ChromotingStats stats_; |
138 | 138 |
| 139 // Keep track of the last sequence number bounced back from the host. |
| 140 int64 last_sequence_number_; |
| 141 |
139 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 142 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
140 }; | 143 }; |
141 | 144 |
142 } // namespace remoting | 145 } // namespace remoting |
143 | 146 |
144 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); | 147 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); |
145 | 148 |
146 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 149 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |