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

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

Issue 9288040: Log client IP addresses to syslog in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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_LOG_TO_SERVER_H_ 5 #ifndef REMOTING_HOST_LOG_TO_SERVER_H_
6 #define REMOTING_HOST_LOG_TO_SERVER_H_ 6 #define REMOTING_HOST_LOG_TO_SERVER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void LogSessionStateChange(bool connected); 44 void LogSessionStateChange(bool connected);
45 45
46 // SignalStrategy::Listener interface. 46 // SignalStrategy::Listener interface.
47 virtual void OnSignalStrategyStateChange( 47 virtual void OnSignalStrategyStateChange(
48 SignalStrategy::State state) OVERRIDE; 48 SignalStrategy::State state) OVERRIDE;
49 49
50 // HostStatusObserver interface. 50 // HostStatusObserver interface.
51 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 51 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
52 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 52 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
53 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; 53 virtual void OnAccessDenied(const std::string& jid) OVERRIDE;
54 virtual void OnClientIpAddress(const std::string& jid,
55 const std::string& channel_name,
56 const net::IPEndPoint& end_point) OVERRIDE;
54 virtual void OnShutdown() OVERRIDE; 57 virtual void OnShutdown() OVERRIDE;
55 58
56 private: 59 private:
57 void Log(const ServerLogEntry& entry); 60 void Log(const ServerLogEntry& entry);
58 void SendPendingEntries(); 61 void SendPendingEntries();
59 62
60 scoped_refptr<ChromotingHost> host_; 63 scoped_refptr<ChromotingHost> host_;
61 ServerLogEntry::Mode mode_; 64 ServerLogEntry::Mode mode_;
62 SignalStrategy* signal_strategy_; 65 SignalStrategy* signal_strategy_;
63 scoped_ptr<IqSender> iq_sender_; 66 scoped_ptr<IqSender> iq_sender_;
64 std::deque<ServerLogEntry> pending_entries_; 67 std::deque<ServerLogEntry> pending_entries_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(LogToServer); 69 DISALLOW_COPY_AND_ASSIGN(LogToServer);
67 }; 70 };
68 71
69 } // namespace remoting 72 } // namespace remoting
70 73
71 #endif // REMOTING_HOST_LOG_TO_SERVER_H_ 74 #endif // REMOTING_HOST_LOG_TO_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698