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

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

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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_mock_objects.h ('k') | remoting/host/host_status_logger_unittest.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 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_HOST_HOST_STATUS_LOGGER_H_ 5 #ifndef REMOTING_HOST_HOST_STATUS_LOGGER_H_
6 #define REMOTING_HOST_HOST_STATUS_LOGGER_H_ 6 #define REMOTING_HOST_HOST_STATUS_LOGGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 16 matching lines...) Expand all
27 ServerLogEntry::Mode mode, 27 ServerLogEntry::Mode mode,
28 SignalStrategy* signal_strategy, 28 SignalStrategy* signal_strategy,
29 const std::string& directory_bot_jid); 29 const std::string& directory_bot_jid);
30 virtual ~HostStatusLogger(); 30 virtual ~HostStatusLogger();
31 31
32 // Logs a session state change. Currently, this is either 32 // Logs a session state change. Currently, this is either
33 // connection or disconnection. 33 // connection or disconnection.
34 void LogSessionStateChange(const std::string& jid, bool connected); 34 void LogSessionStateChange(const std::string& jid, bool connected);
35 35
36 // HostStatusObserver interface. 36 // HostStatusObserver interface.
37 virtual void OnClientConnected(const std::string& jid) OVERRIDE; 37 virtual void OnClientConnected(const std::string& jid) override;
38 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 38 virtual void OnClientDisconnected(const std::string& jid) override;
39 virtual void OnClientRouteChange( 39 virtual void OnClientRouteChange(
40 const std::string& jid, 40 const std::string& jid,
41 const std::string& channel_name, 41 const std::string& channel_name,
42 const protocol::TransportRoute& route) OVERRIDE; 42 const protocol::TransportRoute& route) override;
43 43
44 // Allows test code to fake SignalStrategy state change events. 44 // Allows test code to fake SignalStrategy state change events.
45 void SetSignalingStateForTest(SignalStrategy::State state); 45 void SetSignalingStateForTest(SignalStrategy::State state);
46 46
47 private: 47 private:
48 LogToServer log_to_server_; 48 LogToServer log_to_server_;
49 49
50 base::WeakPtr<HostStatusMonitor> monitor_; 50 base::WeakPtr<HostStatusMonitor> monitor_;
51 51
52 // A map from client JID to the route type of that client's connection to 52 // A map from client JID to the route type of that client's connection to
53 // this host. 53 // this host.
54 std::map<std::string, protocol::TransportRoute::RouteType> 54 std::map<std::string, protocol::TransportRoute::RouteType>
55 connection_route_type_; 55 connection_route_type_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(HostStatusLogger); 57 DISALLOW_COPY_AND_ASSIGN(HostStatusLogger);
58 }; 58 };
59 59
60 } // namespace remoting 60 } // namespace remoting
61 61
62 #endif // REMOTING_HOST_HOST_STATUS_LOGGER_H_ 62 #endif // REMOTING_HOST_HOST_STATUS_LOGGER_H_
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.h ('k') | remoting/host/host_status_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698