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

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

Issue 387123003: Remove ClientSession::EventHandler::OnSessionSequenceNumber() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void OnSessionClientCapabilities(ClientSession* client) = 0; 71 virtual void OnSessionClientCapabilities(ClientSession* client) = 0;
72 72
73 // Called after authentication has failed. Must not tear down this 73 // Called after authentication has failed. Must not tear down this
74 // object. OnSessionClosed() is notified after this handler 74 // object. OnSessionClosed() is notified after this handler
75 // returns. 75 // returns.
76 virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0; 76 virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0;
77 77
78 // Called after connection has failed or after the client closed it. 78 // Called after connection has failed or after the client closed it.
79 virtual void OnSessionClosed(ClientSession* client) = 0; 79 virtual void OnSessionClosed(ClientSession* client) = 0;
80 80
81 // Called to notify of each message's sequence number. The
82 // callback must not tear down this object.
83 virtual void OnSessionSequenceNumber(ClientSession* client,
84 int64 sequence_number) = 0;
85
86 // Called on notification of a route change event, when a channel is 81 // Called on notification of a route change event, when a channel is
87 // connected. 82 // connected.
88 virtual void OnSessionRouteChange( 83 virtual void OnSessionRouteChange(
89 ClientSession* client, 84 ClientSession* client,
90 const std::string& channel_name, 85 const std::string& channel_name,
91 const protocol::TransportRoute& route) = 0; 86 const protocol::TransportRoute& route) = 0;
92 87
93 protected: 88 protected:
94 virtual ~EventHandler() {} 89 virtual ~EventHandler() {}
95 }; 90 };
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 260
266 // Host extension sessions, used to handle extension messages. 261 // Host extension sessions, used to handle extension messages.
267 HostExtensionSessionList extension_sessions_; 262 HostExtensionSessionList extension_sessions_;
268 263
269 DISALLOW_COPY_AND_ASSIGN(ClientSession); 264 DISALLOW_COPY_AND_ASSIGN(ClientSession);
270 }; 265 };
271 266
272 } // namespace remoting 267 } // namespace remoting
273 268
274 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 269 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698