Chromium Code Reviews| Index: remoting/host/client_session.h |
| diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h |
| index 013dc5727bc71776c6cc0b8be4116fedf70c345d..17cba022c63de011df8b1de4771b34416e59e3d8 100644 |
| --- a/remoting/host/client_session.h |
| +++ b/remoting/host/client_session.h |
| @@ -17,7 +17,6 @@ |
| namespace remoting { |
| class Capturer; |
| -class UserAuthenticator; |
| // A ClientSession keeps a reference to a connection to a client, and maintains |
| // per-client state. |
| @@ -32,27 +31,17 @@ class ClientSession : public protocol::HostStub, |
| // Called to signal that local login has succeeded and ChromotingHost can |
|
Wez
2011/11/03 00:25:02
We don't have local login any more, so what does t
Sergey Ulanov
2011/11/03 01:21:12
changed to authentication. I'm going to refactor t
|
| // proceed with the next step. |
| - virtual void LocalLoginSucceeded( |
| - scoped_refptr<protocol::ConnectionToClient> client) = 0; |
| - |
| - // Called to signal that local login has failed. |
| - virtual void LocalLoginFailed( |
| + virtual void OnAuthorizationComplete( |
| scoped_refptr<protocol::ConnectionToClient> client) = 0; |
| }; |
| // Takes ownership of |user_authenticator|. Does not take ownership of |
| // |event_handler|, |input_stub| or |capturer|. |
| ClientSession(EventHandler* event_handler, |
| - UserAuthenticator* user_authenticator, |
| scoped_refptr<protocol::ConnectionToClient> connection, |
| protocol::InputStub* input_stub, |
| Capturer* capturer); |
| - // protocol::HostStub interface. |
| - virtual void BeginSessionRequest( |
| - const protocol::LocalLoginCredentials* credentials, |
| - const base::Closure& done); |
| - |
| // protocol::InputStub interface. |
| virtual void InjectKeyEvent(const protocol::KeyEvent& event); |
| virtual void InjectMouseEvent(const protocol::MouseEvent& event); |
| @@ -62,7 +51,7 @@ class ClientSession : public protocol::HostStub, |
| void OnDisconnected(); |
| // Set the authenticated flag or log a failure message as appropriate. |
|
Wez
2011/11/03 00:25:02
Out-of-date comment.
Sergey Ulanov
2011/11/03 01:21:12
Done.
|
| - void OnAuthorizationComplete(bool success); |
| + void OnAuthorizationComplete(); |
| protocol::ConnectionToClient* connection() const { |
| return connection_.get(); |
| @@ -102,9 +91,6 @@ class ClientSession : public protocol::HostStub, |
| EventHandler* event_handler_; |
| - // A factory for user authenticators. |
| - scoped_ptr<UserAuthenticator> user_authenticator_; |
| - |
| // The connection to the client. |
| scoped_refptr<protocol::ConnectionToClient> connection_; |