| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual ~ChromotingClient(); | 48 virtual ~ChromotingClient(); |
| 49 | 49 |
| 50 void Start(scoped_refptr<XmppProxy> xmpp_proxy, | 50 void Start(scoped_refptr<XmppProxy> xmpp_proxy, |
| 51 scoped_ptr<protocol::TransportFactory> transport_factory); | 51 scoped_ptr<protocol::TransportFactory> transport_factory); |
| 52 void Stop(const base::Closure& shutdown_task); | 52 void Stop(const base::Closure& shutdown_task); |
| 53 void ClientDone(); | 53 void ClientDone(); |
| 54 | 54 |
| 55 // Return the stats recorded by this client. | 55 // Return the stats recorded by this client. |
| 56 ChromotingStats* GetStats(); | 56 ChromotingStats* GetStats(); |
| 57 | 57 |
| 58 // ClipboardStub implementation. | 58 // ClipboardStub implementation for receiving clipboard data from host. |
| 59 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) | 59 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) |
| 60 OVERRIDE; | 60 OVERRIDE; |
| 61 | 61 |
| 62 // CursorShapeStub implementation for receiving cursor shape updates. |
| 63 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) |
| 64 OVERRIDE; |
| 65 |
| 62 // ConnectionToHost::HostEventCallback implementation. | 66 // ConnectionToHost::HostEventCallback implementation. |
| 63 virtual void OnConnectionState( | 67 virtual void OnConnectionState( |
| 64 protocol::ConnectionToHost::State state, | 68 protocol::ConnectionToHost::State state, |
| 65 protocol::ErrorCode error) OVERRIDE; | 69 protocol::ErrorCode error) OVERRIDE; |
| 66 | 70 |
| 67 // VideoStub implementation. | 71 // VideoStub implementation. |
| 68 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 72 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| 69 const base::Closure& done) OVERRIDE; | 73 const base::Closure& done) OVERRIDE; |
| 70 virtual int GetPendingPackets() OVERRIDE; | 74 virtual int GetPendingPackets() OVERRIDE; |
| 71 | 75 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int64 last_sequence_number_; | 125 int64 last_sequence_number_; |
| 122 | 126 |
| 123 ScopedThreadProxy thread_proxy_; | 127 ScopedThreadProxy thread_proxy_; |
| 124 | 128 |
| 125 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 129 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 } // namespace remoting | 132 } // namespace remoting |
| 129 | 133 |
| 130 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 134 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| OLD | NEW |