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 <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... | |
35 class ClientContext; | 35 class ClientContext; |
36 class ClientUserInterface; | 36 class ClientUserInterface; |
37 class FrameConsumerProxy; | 37 class FrameConsumerProxy; |
38 class FrameProducer; | 38 class FrameProducer; |
39 class RectangleUpdateDecoder; | 39 class RectangleUpdateDecoder; |
40 class SignalStrategy; | 40 class SignalStrategy; |
41 | 41 |
42 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, | 42 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, |
43 public protocol::ClientStub { | 43 public protocol::ClientStub { |
44 public: | 44 public: |
45 // A null pointer in |audio_player| disables the audio stream. | |
Wez
2013/07/09 20:08:07
nit: We should have a comment here that clarifies
solb
2013/07/10 00:00:31
Done.
| |
45 ChromotingClient(const ClientConfig& config, | 46 ChromotingClient(const ClientConfig& config, |
46 ClientContext* client_context, | 47 ClientContext* client_context, |
47 protocol::ConnectionToHost* connection, | 48 protocol::ConnectionToHost* connection, |
48 ClientUserInterface* user_interface, | 49 ClientUserInterface* user_interface, |
49 scoped_refptr<FrameConsumerProxy> frame_consumer, | 50 scoped_refptr<FrameConsumerProxy> frame_consumer, |
50 scoped_ptr<AudioPlayer> audio_player); | 51 scoped_ptr<AudioPlayer> audio_player); |
51 | 52 |
52 virtual ~ChromotingClient(); | 53 virtual ~ChromotingClient(); |
53 | 54 |
54 // Start the client. Must be called on the main thread. |signal_strategy| | 55 // Start the client. Must be called on the main thread. |signal_strategy| |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 // WeakPtr used to avoid tasks accessing the client after it is deleted. | 113 // WeakPtr used to avoid tasks accessing the client after it is deleted. |
113 base::WeakPtrFactory<ChromotingClient> weak_factory_; | 114 base::WeakPtrFactory<ChromotingClient> weak_factory_; |
114 base::WeakPtr<ChromotingClient> weak_ptr_; | 115 base::WeakPtr<ChromotingClient> weak_ptr_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 117 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace remoting | 120 } // namespace remoting |
120 | 121 |
121 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 122 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |