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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const base::Closure& client_done); | 42 const base::Closure& client_done); |
43 virtual ~ChromotingClient(); | 43 virtual ~ChromotingClient(); |
44 | 44 |
45 void Start(scoped_refptr<XmppProxy> xmpp_proxy); | 45 void Start(scoped_refptr<XmppProxy> xmpp_proxy); |
46 void Stop(const base::Closure& shutdown_task); | 46 void Stop(const base::Closure& shutdown_task); |
47 void ClientDone(); | 47 void ClientDone(); |
48 | 48 |
49 // Return the stats recorded by this client. | 49 // Return the stats recorded by this client. |
50 ChromotingStats* GetStats(); | 50 ChromotingStats* GetStats(); |
51 | 51 |
52 // Signals that the associated view may need updating. | |
53 virtual void Repaint(); | |
54 | |
55 // ConnectionToHost::HostEventCallback implementation. | 52 // ConnectionToHost::HostEventCallback implementation. |
56 virtual void OnConnectionState( | 53 virtual void OnConnectionState( |
57 protocol::ConnectionToHost::State state, | 54 protocol::ConnectionToHost::State state, |
58 protocol::ConnectionToHost::Error error) OVERRIDE; | 55 protocol::ConnectionToHost::Error error) OVERRIDE; |
59 | 56 |
60 // VideoStub implementation. | 57 // VideoStub implementation. |
61 virtual void ProcessVideoPacket(const VideoPacket* packet, | 58 virtual void ProcessVideoPacket(const VideoPacket* packet, |
62 const base::Closure& done) OVERRIDE; | 59 const base::Closure& done) OVERRIDE; |
63 virtual int GetPendingPackets() OVERRIDE; | 60 virtual int GetPendingPackets() OVERRIDE; |
64 | 61 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int64 last_sequence_number_; | 110 int64 last_sequence_number_; |
114 | 111 |
115 ScopedThreadProxy thread_proxy_; | 112 ScopedThreadProxy thread_proxy_; |
116 | 113 |
117 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 114 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
118 }; | 115 }; |
119 | 116 |
120 } // namespace remoting | 117 } // namespace remoting |
121 | 118 |
122 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 119 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |