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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/signaling/iq_sender.h ('k') | remoting/signaling/xmpp_signal_strategy.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SIGNALING_LOG_TO_SERVER_H_ 5 #ifndef REMOTING_SIGNALING_LOG_TO_SERVER_H_
6 #define REMOTING_SIGNALING_LOG_TO_SERVER_H_ 6 #define REMOTING_SIGNALING_LOG_TO_SERVER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 23
24 // LogToServer sends log entries to a server. 24 // LogToServer sends log entries to a server.
25 // The contents of the log entries are described in server_log_entry.cc. 25 // The contents of the log entries are described in server_log_entry.cc.
26 // They do not contain any personally identifiable information. 26 // They do not contain any personally identifiable information.
27 class LogToServer : public base::NonThreadSafe, 27 class LogToServer : public base::NonThreadSafe,
28 public SignalStrategy::Listener { 28 public SignalStrategy::Listener {
29 public: 29 public:
30 LogToServer(ServerLogEntry::Mode mode, 30 LogToServer(ServerLogEntry::Mode mode,
31 SignalStrategy* signal_strategy, 31 SignalStrategy* signal_strategy,
32 const std::string& directory_bot_jid); 32 const std::string& directory_bot_jid);
33 virtual ~LogToServer(); 33 ~LogToServer() override;
34 34
35 // SignalStrategy::Listener interface. 35 // SignalStrategy::Listener interface.
36 virtual void OnSignalStrategyStateChange( 36 void OnSignalStrategyStateChange(SignalStrategy::State state) override;
37 SignalStrategy::State state) override; 37 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override;
38 virtual bool OnSignalStrategyIncomingStanza(
39 const buzz::XmlElement* stanza) override;
40 38
41 void Log(const ServerLogEntry& entry); 39 void Log(const ServerLogEntry& entry);
42 40
43 ServerLogEntry::Mode mode() { return mode_; } 41 ServerLogEntry::Mode mode() { return mode_; }
44 42
45 private: 43 private:
46 void SendPendingEntries(); 44 void SendPendingEntries();
47 45
48 ServerLogEntry::Mode mode_; 46 ServerLogEntry::Mode mode_;
49 SignalStrategy* signal_strategy_; 47 SignalStrategy* signal_strategy_;
50 scoped_ptr<IqSender> iq_sender_; 48 scoped_ptr<IqSender> iq_sender_;
51 std::string directory_bot_jid_; 49 std::string directory_bot_jid_;
52 50
53 std::deque<ServerLogEntry> pending_entries_; 51 std::deque<ServerLogEntry> pending_entries_;
54 52
55 DISALLOW_COPY_AND_ASSIGN(LogToServer); 53 DISALLOW_COPY_AND_ASSIGN(LogToServer);
56 }; 54 };
57 55
58 } // namespace remoting 56 } // namespace remoting
59 57
60 #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_ 58 #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_
OLDNEW
« no previous file with comments | « remoting/signaling/iq_sender.h ('k') | remoting/signaling/xmpp_signal_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698