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

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

Issue 2431513003: Revert of Don't use barcodes in ProtocolPerfTests (Closed)
Patch Set: 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
147 private: 143 private:
148 // Creates a proxy for sending clipboard events to the client. 144 // Creates a proxy for sending clipboard events to the client.
149 std::unique_ptr<protocol::ClipboardStub> CreateClipboardProxy(); 145 std::unique_ptr<protocol::ClipboardStub> CreateClipboardProxy();
150 146
151 // protocol::VideoStream::Observer implementation. 147 // protocol::VideoStream::Observer implementation.
152 void OnVideoSizeChanged(protocol::VideoStream* stream, 148 void OnVideoSizeChanged(protocol::VideoStream* stream,
153 const webrtc::DesktopSize& size, 149 const webrtc::DesktopSize& size,
154 const webrtc::DesktopVector& dpi) override; 150 const webrtc::DesktopVector& dpi) override;
155 151
156 EventHandler* event_handler_; 152 EventHandler* event_handler_;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 230
235 // Used to store video channel pause & lossless parameters. 231 // Used to store video channel pause & lossless parameters.
236 bool pause_video_ = false; 232 bool pause_video_ = false;
237 bool lossless_video_encode_ = false; 233 bool lossless_video_encode_ = false;
238 bool lossless_video_color_ = false; 234 bool lossless_video_color_ = false;
239 235
240 // VideoLayout is sent only after the control channel is connected. Until 236 // VideoLayout is sent only after the control channel is connected. Until
241 // then it's stored in |pending_video_layout_message_|. 237 // then it's stored in |pending_video_layout_message_|.
242 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_; 238 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_;
243 239
244 scoped_refptr<protocol::InputEventTimestampsSource>
245 event_timestamp_source_for_tests_;
246
247 // Used to disable callbacks to |this| once DisconnectSession() has been 240 // Used to disable callbacks to |this| once DisconnectSession() has been
248 // called. 241 // called.
249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; 242 base::WeakPtrFactory<ClientSessionControl> weak_factory_;
250 243
251 DISALLOW_COPY_AND_ASSIGN(ClientSession); 244 DISALLOW_COPY_AND_ASSIGN(ClientSession);
252 }; 245 };
253 246
254 } // namespace remoting 247 } // namespace remoting
255 248
256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 249 #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