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

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

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change authorization socket flag name 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
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_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ 6 #define REMOTING_HOST_CHROMOTING_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // thread after the host is started. Must not be called more than 102 // thread after the host is started. Must not be called more than
103 // once per host instance because it may not be safe to delete 103 // once per host instance because it may not be safe to delete
104 // factory before all authenticators it created are deleted. 104 // factory before all authenticators it created are deleted.
105 void SetAuthenticatorFactory( 105 void SetAuthenticatorFactory(
106 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); 106 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory);
107 107
108 // Enables/disables curtaining when one or more clients are connected. 108 // Enables/disables curtaining when one or more clients are connected.
109 // Takes immediate effect if clients are already connected. 109 // Takes immediate effect if clients are already connected.
110 void SetEnableCurtaining(bool enable); 110 void SetEnableCurtaining(bool enable);
111 111
112 // Enables/disables gnubby auth forwarding.
113 void SetEnableGnubbyAuth(bool enable);
114
112 // Sets the maximum duration of any session. By default, a session has no 115 // Sets the maximum duration of any session. By default, a session has no
113 // maximum duration. 116 // maximum duration.
114 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); 117 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration);
115 118
116 //////////////////////////////////////////////////////////////////////////// 119 ////////////////////////////////////////////////////////////////////////////
117 // ClientSession::EventHandler implementation. 120 // ClientSession::EventHandler implementation.
118 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; 121 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE;
119 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; 122 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE;
120 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; 123 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE;
121 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; 124 virtual void OnSessionClosed(ClientSession* session) OVERRIDE;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Flags used for RejectAuthenticatingClient(). 196 // Flags used for RejectAuthenticatingClient().
194 bool authenticating_client_; 197 bool authenticating_client_;
195 bool reject_authenticating_client_; 198 bool reject_authenticating_client_;
196 199
197 // True if the curtain mode is enabled. 200 // True if the curtain mode is enabled.
198 bool enable_curtaining_; 201 bool enable_curtaining_;
199 202
200 // The maximum duration of any session. 203 // The maximum duration of any session.
201 base::TimeDelta max_session_duration_; 204 base::TimeDelta max_session_duration_;
202 205
206 // True if gnubby auth is enabled.
207 bool enable_gnubby_auth_;
208
203 // The pairing registry for PIN-less authentication. 209 // The pairing registry for PIN-less authentication.
204 scoped_refptr<protocol::PairingRegistry> pairing_registry_; 210 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
205 211
206 base::WeakPtrFactory<ChromotingHost> weak_factory_; 212 base::WeakPtrFactory<ChromotingHost> weak_factory_;
207 213
208 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 214 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
209 }; 215 };
210 216
211 } // namespace remoting 217 } // namespace remoting
212 218
213 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 219 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698