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

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

Issue 1458323002: Simplify It2Me host shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public protocol::HostStub, 53 public protocol::HostStub,
54 public protocol::ConnectionToClient::EventHandler, 54 public protocol::ConnectionToClient::EventHandler,
55 public ClientSessionControl { 55 public ClientSessionControl {
56 public: 56 public:
57 // Callback interface for passing events to the ChromotingHost. 57 // Callback interface for passing events to the ChromotingHost.
58 class EventHandler { 58 class EventHandler {
59 public: 59 public:
60 // Called after authentication has started. 60 // Called after authentication has started.
61 virtual void OnSessionAuthenticating(ClientSession* client) = 0; 61 virtual void OnSessionAuthenticating(ClientSession* client) = 0;
62 62
63 // Called after authentication has finished successfully. Returns true if 63 // Called after authentication has finished successfully.
64 // the connection is allowed, or false otherwise. 64 virtual void OnSessionAuthenticated(ClientSession* client) = 0;
65 virtual bool OnSessionAuthenticated(ClientSession* client) = 0;
66 65
67 // Called after we've finished connecting all channels. 66 // Called after we've finished connecting all channels.
68 virtual void OnSessionChannelsConnected(ClientSession* client) = 0; 67 virtual void OnSessionChannelsConnected(ClientSession* client) = 0;
69 68
70 // Called after authentication has failed. Must not tear down this 69 // Called after authentication has failed. Must not tear down this
71 // object. OnSessionClosed() is notified after this handler 70 // object. OnSessionClosed() is notified after this handler
72 // returns. 71 // returns.
73 virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0; 72 virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0;
74 73
75 // Called after connection has failed or after the client closed it. 74 // Called after connection has failed or after the client closed it.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Used to disable callbacks to |this| once DisconnectSession() has been 249 // Used to disable callbacks to |this| once DisconnectSession() has been
251 // called. 250 // called.
252 base::WeakPtrFactory<ClientSessionControl> weak_factory_; 251 base::WeakPtrFactory<ClientSessionControl> weak_factory_;
253 252
254 DISALLOW_COPY_AND_ASSIGN(ClientSession); 253 DISALLOW_COPY_AND_ASSIGN(ClientSession);
255 }; 254 };
256 255
257 } // namespace remoting 256 } // namespace remoting
258 257
259 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 258 #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