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

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

Issue 9316052: Log IP/port of host as well as client in Me2Me host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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_HOST_STATUS_OBSERVER_H_ 5 #ifndef REMOTING_HOST_HOST_STATUS_OBSERVER_H_
6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_ 6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace net { 10 namespace net {
(...skipping 14 matching lines...) Expand all
25 virtual void OnAccessDenied(const std::string& jid) = 0; 25 virtual void OnAccessDenied(const std::string& jid) = 0;
26 26
27 // Called when a client authenticates, or disconnects. Observers 27 // Called when a client authenticates, or disconnects. Observers
28 // must not tear-down ChromotingHost state on receipt of this 28 // must not tear-down ChromotingHost state on receipt of this
29 // callback; it is purely informational. 29 // callback; it is purely informational.
30 virtual void OnClientAuthenticated(const std::string& jid) = 0; 30 virtual void OnClientAuthenticated(const std::string& jid) = 0;
31 virtual void OnClientDisconnected(const std::string& jid) = 0; 31 virtual void OnClientDisconnected(const std::string& jid) = 0;
32 32
33 // Called on notification of a route change event, when a channel is 33 // Called on notification of a route change event, when a channel is
34 // connected. 34 // connected.
35 virtual void OnClientIpAddress(const std::string& jid, 35 virtual void OnClientIpAddress(const std::string& jid,
Sergey Ulanov 2012/02/02 01:10:23 OnClientRouteChange?
Lambros 2012/02/02 01:48:12 Done.
36 const std::string& channel_name, 36 const std::string& channel_name,
37 const net::IPEndPoint& end_point) { } 37 const net::IPEndPoint& end_point,
38 const net::IPEndPoint& local_end_point) { }
38 39
39 // Called when the host shuts down. 40 // Called when the host shuts down.
40 virtual void OnShutdown() = 0; 41 virtual void OnShutdown() = 0;
41 }; 42 };
42 43
43 } // namespace remoting 44 } // namespace remoting
44 45
45 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ 46 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698