Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: remoting/client/chromoting_client.h

Issue 1559023003: Move VideoRenderer to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 namespace base { 24 namespace base {
25 class SingleThreadTaskRunner; 25 class SingleThreadTaskRunner;
26 } // namespace base 26 } // namespace base
27 27
28 namespace remoting { 28 namespace remoting {
29 29
30 namespace protocol { 30 namespace protocol {
31 class CandidateSessionConfig; 31 class CandidateSessionConfig;
32 class SessionManager; 32 class SessionManager;
33 class TransportContext; 33 class TransportContext;
34 class VideoRenderer;
34 } // namespace protocol 35 } // namespace protocol
35 36
36 class AudioDecodeScheduler; 37 class AudioDecodeScheduler;
37 class AudioPlayer; 38 class AudioPlayer;
38 class ClientContext; 39 class ClientContext;
39 class ClientUserInterface; 40 class ClientUserInterface;
40 class FrameConsumerProxy; 41 class FrameConsumerProxy;
41 class FrameProducer; 42 class FrameProducer;
42 class VideoRenderer;
43 43
44 class ChromotingClient : public SignalStrategy::Listener, 44 class ChromotingClient : public SignalStrategy::Listener,
45 public protocol::ConnectionToHost::HostEventCallback, 45 public protocol::ConnectionToHost::HostEventCallback,
46 public protocol::ClientStub { 46 public protocol::ClientStub {
47 public: 47 public:
48 // |client_context|, |user_interface| and |video_renderer| must outlive the 48 // |client_context|, |user_interface| and |video_renderer| must outlive the
49 // client. |audio_player| may be null, in which case audio will not be 49 // client. |audio_player| may be null, in which case audio will not be
50 // requested. 50 // requested.
51 ChromotingClient(ClientContext* client_context, 51 ChromotingClient(ClientContext* client_context,
52 ClientUserInterface* user_interface, 52 ClientUserInterface* user_interface,
53 VideoRenderer* video_renderer, 53 protocol::VideoRenderer* video_renderer,
54 scoped_ptr<AudioPlayer> audio_player); 54 scoped_ptr<AudioPlayer> audio_player);
55 55
56 ~ChromotingClient() override; 56 ~ChromotingClient() override;
57 57
58 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config); 58 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config);
59 59
60 // Used to set fake/mock objects for tests which use the ChromotingClient. 60 // Used to set fake/mock objects for tests which use the ChromotingClient.
61 void SetConnectionToHostForTests( 61 void SetConnectionToHostForTests(
62 scoped_ptr<protocol::ConnectionToHost> connection_to_host); 62 scoped_ptr<protocol::ConnectionToHost> connection_to_host);
63 63
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Called when all channels are connected. 112 // Called when all channels are connected.
113 void OnChannelsConnected(); 113 void OnChannelsConnected();
114 114
115 base::ThreadChecker thread_checker_; 115 base::ThreadChecker thread_checker_;
116 116
117 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; 117 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_;
118 118
119 // The following are not owned by this class. 119 // The following are not owned by this class.
120 ClientUserInterface* user_interface_ = nullptr; 120 ClientUserInterface* user_interface_ = nullptr;
121 VideoRenderer* video_renderer_ = nullptr; 121 protocol::VideoRenderer* video_renderer_ = nullptr;
122 SignalStrategy* signal_strategy_ = nullptr; 122 SignalStrategy* signal_strategy_ = nullptr;
123 123
124 std::string host_jid_; 124 std::string host_jid_;
125 scoped_ptr<protocol::Authenticator> authenticator_; 125 scoped_ptr<protocol::Authenticator> authenticator_;
126 scoped_refptr<protocol::TransportContext> transport_context_; 126 scoped_refptr<protocol::TransportContext> transport_context_;
127 127
128 scoped_ptr<protocol::SessionManager> session_manager_; 128 scoped_ptr<protocol::SessionManager> session_manager_;
129 scoped_ptr<protocol::ConnectionToHost> connection_; 129 scoped_ptr<protocol::ConnectionToHost> connection_;
130 130
131 scoped_ptr<AudioDecodeScheduler> audio_decode_scheduler_; 131 scoped_ptr<AudioDecodeScheduler> audio_decode_scheduler_;
132 132
133 std::string local_capabilities_; 133 std::string local_capabilities_;
134 134
135 // The set of all capabilities supported by the host. 135 // The set of all capabilities supported by the host.
136 std::string host_capabilities_; 136 std::string host_capabilities_;
137 137
138 // True if |protocol::Capabilities| message has been received. 138 // True if |protocol::Capabilities| message has been received.
139 bool host_capabilities_received_ = false; 139 bool host_capabilities_received_ = false;
140 140
141 // Record the statistics of the connection. 141 // Record the statistics of the connection.
142 protocol::PerformanceTracker perf_tracker_; 142 protocol::PerformanceTracker perf_tracker_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 144 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
145 }; 145 };
146 146
147 } // namespace remoting 147 } // namespace remoting
148 148
149 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 149 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698