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

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

Issue 2420183002: 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Used to disable callbacks to |this| once DisconnectSession() has been 244 // Used to disable callbacks to |this| once DisconnectSession() has been
241 // called. 245 // called.
242 base::WeakPtrFactory<ClientSessionControl> weak_factory_; 246 base::WeakPtrFactory<ClientSessionControl> weak_factory_;
243 247
244 DISALLOW_COPY_AND_ASSIGN(ClientSession); 248 DISALLOW_COPY_AND_ASSIGN(ClientSession);
245 }; 249 };
246 250
247 } // namespace remoting 251 } // namespace remoting
248 252
249 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 253 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698