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

Side by Side Diff: remoting/host/host_status_sender.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/host/host_status_logger.h ('k') | remoting/host/host_window_proxy.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_STATUS_SENDER_H_ 5 #ifndef REMOTING_HOST_STATUS_SENDER_H_
6 #define REMOTING_HOST_STATUS_SENDER_H_ 6 #define REMOTING_HOST_STATUS_SENDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 enum HostStatus { 53 enum HostStatus {
54 OFFLINE = 0, 54 OFFLINE = 0,
55 ONLINE = 1 55 ONLINE = 1
56 }; 56 };
57 57
58 HostStatusSender(const std::string& host_id, 58 HostStatusSender(const std::string& host_id,
59 SignalStrategy* signal_strategy, 59 SignalStrategy* signal_strategy,
60 scoped_refptr<RsaKeyPair> key_pair, 60 scoped_refptr<RsaKeyPair> key_pair,
61 const std::string& directory_bot_jid); 61 const std::string& directory_bot_jid);
62 virtual ~HostStatusSender(); 62 ~HostStatusSender() override;
63 63
64 // SignalStrategy::Listener interface. 64 // SignalStrategy::Listener interface.
65 virtual void OnSignalStrategyStateChange( 65 void OnSignalStrategyStateChange(SignalStrategy::State state) override;
66 SignalStrategy::State state) override; 66 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override;
67 virtual bool OnSignalStrategyIncomingStanza(
68 const buzz::XmlElement* stanza) override;
69 67
70 // APIs for sending host status XMPP messages to the chromoting bot. 68 // APIs for sending host status XMPP messages to the chromoting bot.
71 // status: the reason (exit code) why the host is offline. 69 // status: the reason (exit code) why the host is offline.
72 void SendOnlineStatus(); 70 void SendOnlineStatus();
73 void SendOfflineStatus(HostExitCodes exit_code); 71 void SendOfflineStatus(HostExitCodes exit_code);
74 72
75 inline static const char* HostStatusToString(HostStatus host_status) { 73 inline static const char* HostStatusToString(HostStatus host_status) {
76 return host_status_strings_[host_status]; 74 return host_status_strings_[host_status];
77 } 75 }
78 76
(...skipping 17 matching lines...) Expand all
96 94
97 // The string representation of the HostStatus values. 95 // The string representation of the HostStatus values.
98 static const char* const host_status_strings_[2]; 96 static const char* const host_status_strings_[2];
99 97
100 DISALLOW_COPY_AND_ASSIGN(HostStatusSender); 98 DISALLOW_COPY_AND_ASSIGN(HostStatusSender);
101 }; 99 };
102 100
103 } // namespace remoting 101 } // namespace remoting
104 102
105 #endif // REMOTING_HOST_STATUS_SENDER_H_ 103 #endif // REMOTING_HOST_STATUS_SENDER_H_
OLDNEW
« no previous file with comments | « remoting/host/host_status_logger.h ('k') | remoting/host/host_window_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698