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

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

Issue 9243017: Log client jid for rejected clients. (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
« no previous file with comments | « remoting/host/it2me_host_user_interface.cc ('k') | remoting/host/log_to_server.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_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // connection or disconnection. 42 // connection or disconnection.
43 void LogSessionStateChange(bool connected); 43 void LogSessionStateChange(bool connected);
44 44
45 // SignalStrategy::Listener interface. 45 // SignalStrategy::Listener interface.
46 virtual void OnSignalStrategyStateChange( 46 virtual void OnSignalStrategyStateChange(
47 SignalStrategy::State state) OVERRIDE; 47 SignalStrategy::State state) OVERRIDE;
48 48
49 // HostStatusObserver interface. 49 // HostStatusObserver interface.
50 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 50 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
51 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 51 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
52 virtual void OnAccessDenied() OVERRIDE; 52 virtual void OnAccessDenied(const std::string& jid) OVERRIDE;
53 virtual void OnShutdown() OVERRIDE; 53 virtual void OnShutdown() OVERRIDE;
54 54
55 private: 55 private:
56 void Log(const ServerLogEntry& entry); 56 void Log(const ServerLogEntry& entry);
57 void SendPendingEntries(); 57 void SendPendingEntries();
58 58
59 scoped_refptr<ChromotingHost> host_; 59 scoped_refptr<ChromotingHost> host_;
60 SignalStrategy* signal_strategy_; 60 SignalStrategy* signal_strategy_;
61 scoped_ptr<IqSender> iq_sender_; 61 scoped_ptr<IqSender> iq_sender_;
62 std::deque<ServerLogEntry> pending_entries_; 62 std::deque<ServerLogEntry> pending_entries_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(LogToServer); 64 DISALLOW_COPY_AND_ASSIGN(LogToServer);
65 }; 65 };
66 66
67 } // namespace remoting 67 } // namespace remoting
68 68
69 #endif // REMOTING_HOST_LOG_TO_SERVER_H_ 69 #endif // REMOTING_HOST_LOG_TO_SERVER_H_
OLDNEW
« no previous file with comments | « remoting/host/it2me_host_user_interface.cc ('k') | remoting/host/log_to_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698