| 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 18 matching lines...) Expand all Loading... |
| 29 namespace protocol { | 29 namespace protocol { |
| 30 class TransportFactory; | 30 class TransportFactory; |
| 31 } // namespace protocol | 31 } // namespace protocol |
| 32 | 32 |
| 33 class ClientContext; | 33 class ClientContext; |
| 34 class RectangleUpdateDecoder; | 34 class RectangleUpdateDecoder; |
| 35 | 35 |
| 36 // TODO(sergeyu): Move VideoStub implementation to RectangleUpdateDecoder. | 36 // TODO(sergeyu): Move VideoStub implementation to RectangleUpdateDecoder. |
| 37 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, | 37 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, |
| 38 public protocol::ClientStub, | 38 public protocol::ClientStub, |
| 39 public protocol::ClipboardStub, | |
| 40 public protocol::VideoStub { | 39 public protocol::VideoStub { |
| 41 public: | 40 public: |
| 42 // Objects passed in are not owned by this class. | 41 // Objects passed in are not owned by this class. |
| 43 ChromotingClient(const ClientConfig& config, | 42 ChromotingClient(const ClientConfig& config, |
| 44 ClientContext* context, | 43 ClientContext* context, |
| 45 protocol::ConnectionToHost* connection, | 44 protocol::ConnectionToHost* connection, |
| 46 ChromotingView* view, | 45 ChromotingView* view, |
| 47 RectangleUpdateDecoder* rectangle_decoder, | 46 RectangleUpdateDecoder* rectangle_decoder, |
| 48 const base::Closure& client_done); | 47 const base::Closure& client_done); |
| 49 virtual ~ChromotingClient(); | 48 virtual ~ChromotingClient(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 int64 last_sequence_number_; | 121 int64 last_sequence_number_; |
| 123 | 122 |
| 124 ScopedThreadProxy thread_proxy_; | 123 ScopedThreadProxy thread_proxy_; |
| 125 | 124 |
| 126 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 125 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 } // namespace remoting | 128 } // namespace remoting |
| 130 | 129 |
| 131 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 130 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| OLD | NEW |