OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 private: | 75 private: |
76 struct QueuedVideoPacket { | 76 struct QueuedVideoPacket { |
77 QueuedVideoPacket(const VideoPacket* packet, Task* done) | 77 QueuedVideoPacket(const VideoPacket* packet, Task* done) |
78 : packet(packet), done(done) { | 78 : packet(packet), done(done) { |
79 } | 79 } |
80 const VideoPacket* packet; | 80 const VideoPacket* packet; |
81 Task* done; | 81 Task* done; |
82 }; | 82 }; |
83 | 83 |
84 MessageLoop* message_loop(); | 84 base::MessageLoopProxy* message_loop(); |
85 | 85 |
86 // Initializes connection. | 86 // Initializes connection. |
87 void Initialize(); | 87 void Initialize(); |
88 | 88 |
89 // Convenience method for modifying the state on this object's message loop. | 89 // Convenience method for modifying the state on this object's message loop. |
90 void SetConnectionState(ConnectionState s); | 90 void SetConnectionState(ConnectionState s); |
91 | 91 |
92 // If a packet is not being processed, dispatches a single message from the | 92 // If a packet is not being processed, dispatches a single message from the |
93 // |received_packets_| queue. | 93 // |received_packets_| queue. |
94 void DispatchPacket(); | 94 void DispatchPacket(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 int64 last_sequence_number_; | 130 int64 last_sequence_number_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 132 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace remoting | 135 } // namespace remoting |
136 | 136 |
137 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); | 137 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); |
138 | 138 |
139 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 139 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |