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

Side by Side Diff: remoting/host/client_session.h

Issue 2420183002: Don't use barcodes in ProtocolPerfTests (Closed)
Patch Set: Update ChromotingHost::OnSessionAuthenticated() to fix test crash Created 4 years, 2 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 | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.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 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_
6 #define REMOTING_HOST_CLIENT_SESSION_H_ 6 #define REMOTING_HOST_CLIENT_SESSION_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ClientSessionControl* session_control() override; 133 ClientSessionControl* session_control() override;
134 134
135 protocol::ConnectionToClient* connection() const { return connection_.get(); } 135 protocol::ConnectionToClient* connection() const { return connection_.get(); }
136 136
137 bool is_authenticated() { return is_authenticated_; } 137 bool is_authenticated() { return is_authenticated_; }
138 138
139 const std::string* client_capabilities() const { 139 const std::string* client_capabilities() const {
140 return client_capabilities_.get(); 140 return client_capabilities_.get();
141 } 141 }
142 142
143 void SetEventTimestampsSourceForTests(
144 scoped_refptr<protocol::InputEventTimestampsSource>
145 event_timestamp_source);
146
143 private: 147 private:
144 // Creates a proxy for sending clipboard events to the client. 148 // Creates a proxy for sending clipboard events to the client.
145 std::unique_ptr<protocol::ClipboardStub> CreateClipboardProxy(); 149 std::unique_ptr<protocol::ClipboardStub> CreateClipboardProxy();
146 150
147 // protocol::VideoStream::Observer implementation. 151 // protocol::VideoStream::Observer implementation.
148 void OnVideoSizeChanged(protocol::VideoStream* stream, 152 void OnVideoSizeChanged(protocol::VideoStream* stream,
149 const webrtc::DesktopSize& size, 153 const webrtc::DesktopSize& size,
150 const webrtc::DesktopVector& dpi) override; 154 const webrtc::DesktopVector& dpi) override;
151 155
152 EventHandler* event_handler_; 156 EventHandler* event_handler_;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 234
231 // Used to store video channel pause & lossless parameters. 235 // Used to store video channel pause & lossless parameters.
232 bool pause_video_ = false; 236 bool pause_video_ = false;
233 bool lossless_video_encode_ = false; 237 bool lossless_video_encode_ = false;
234 bool lossless_video_color_ = false; 238 bool lossless_video_color_ = false;
235 239
236 // VideoLayout is sent only after the control channel is connected. Until 240 // VideoLayout is sent only after the control channel is connected. Until
237 // then it's stored in |pending_video_layout_message_|. 241 // then it's stored in |pending_video_layout_message_|.
238 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_; 242 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_;
239 243
244 scoped_refptr<protocol::InputEventTimestampsSource>
245 event_timestamp_source_for_tests_;
246
240 // Used to disable callbacks to |this| once DisconnectSession() has been 247 // Used to disable callbacks to |this| once DisconnectSession() has been
241 // called. 248 // called.
242 base::WeakPtrFactory<ClientSessionControl> weak_factory_; 249 base::WeakPtrFactory<ClientSessionControl> weak_factory_;
243 250
244 DISALLOW_COPY_AND_ASSIGN(ClientSession); 251 DISALLOW_COPY_AND_ASSIGN(ClientSession);
245 }; 252 };
246 253
247 } // namespace remoting 254 } // namespace remoting
248 255
249 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 256 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698