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

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

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another Windows warning Created 6 years, 10 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/basic_desktop_environment.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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/sequenced_task_runner_helpers.h" 12 #include "base/sequenced_task_runner_helpers.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "remoting/host/client_session_control.h" 16 #include "remoting/host/client_session_control.h"
17 #include "remoting/host/gnubby_auth_handler.h"
17 #include "remoting/host/mouse_clamping_filter.h" 18 #include "remoting/host/mouse_clamping_filter.h"
18 #include "remoting/host/remote_input_filter.h" 19 #include "remoting/host/remote_input_filter.h"
19 #include "remoting/protocol/clipboard_echo_filter.h" 20 #include "remoting/protocol/clipboard_echo_filter.h"
20 #include "remoting/protocol/clipboard_filter.h" 21 #include "remoting/protocol/clipboard_filter.h"
21 #include "remoting/protocol/clipboard_stub.h" 22 #include "remoting/protocol/clipboard_stub.h"
22 #include "remoting/protocol/connection_to_client.h" 23 #include "remoting/protocol/connection_to_client.h"
23 #include "remoting/protocol/host_stub.h" 24 #include "remoting/protocol/host_stub.h"
24 #include "remoting/protocol/input_event_tracker.h" 25 #include "remoting/protocol/input_event_tracker.h"
25 #include "remoting/protocol/input_filter.h" 26 #include "remoting/protocol/input_filter.h"
26 #include "remoting/protocol/input_stub.h" 27 #include "remoting/protocol/input_stub.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const std::string& channel_name, 128 const std::string& channel_name,
128 const protocol::TransportRoute& route) OVERRIDE; 129 const protocol::TransportRoute& route) OVERRIDE;
129 130
130 // ClientSessionControl interface. 131 // ClientSessionControl interface.
131 virtual const std::string& client_jid() const OVERRIDE; 132 virtual const std::string& client_jid() const OVERRIDE;
132 virtual void DisconnectSession() OVERRIDE; 133 virtual void DisconnectSession() OVERRIDE;
133 virtual void OnLocalMouseMoved( 134 virtual void OnLocalMouseMoved(
134 const webrtc::DesktopVector& position) OVERRIDE; 135 const webrtc::DesktopVector& position) OVERRIDE;
135 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE; 136 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE;
136 137
138 void SetGnubbyAuthHandlerForTesting(GnubbyAuthHandler* gnubby_auth_handler);
139
137 protocol::ConnectionToClient* connection() const { 140 protocol::ConnectionToClient* connection() const {
138 return connection_.get(); 141 return connection_.get();
139 } 142 }
140 143
141 bool is_authenticated() { return auth_input_filter_.enabled(); } 144 bool is_authenticated() { return auth_input_filter_.enabled(); }
142 145
143 private: 146 private:
144 // Creates a proxy for sending clipboard events to the client. 147 // Creates a proxy for sending clipboard events to the client.
145 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); 148 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy();
146 149
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 229
227 // Used to inject mouse and keyboard input and handle clipboard events. 230 // Used to inject mouse and keyboard input and handle clipboard events.
228 scoped_ptr<InputInjector> input_injector_; 231 scoped_ptr<InputInjector> input_injector_;
229 232
230 // Used to apply client-requested changes in screen resolution. 233 // Used to apply client-requested changes in screen resolution.
231 scoped_ptr<ScreenControls> screen_controls_; 234 scoped_ptr<ScreenControls> screen_controls_;
232 235
233 // The pairing registry for PIN-less authentication. 236 // The pairing registry for PIN-less authentication.
234 scoped_refptr<protocol::PairingRegistry> pairing_registry_; 237 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
235 238
239 // Used to proxy gnubby auth traffic.
240 scoped_ptr<GnubbyAuthHandler> gnubby_auth_handler_;
241
236 DISALLOW_COPY_AND_ASSIGN(ClientSession); 242 DISALLOW_COPY_AND_ASSIGN(ClientSession);
237 }; 243 };
238 244
239 } // namespace remoting 245 } // namespace remoting
240 246
241 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 247 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/basic_desktop_environment.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698