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

Side by Side Diff: remoting/host/host_event_logger_posix.cc

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
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 #include "remoting/host/host_event_logger.h" 5 #include "remoting/host/host_event_logger.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 12 matching lines...) Expand all
23 23
24 class HostEventLoggerPosix : public HostEventLogger, public HostStatusObserver { 24 class HostEventLoggerPosix : public HostEventLogger, public HostStatusObserver {
25 public: 25 public:
26 HostEventLoggerPosix(base::WeakPtr<HostStatusMonitor> monitor, 26 HostEventLoggerPosix(base::WeakPtr<HostStatusMonitor> monitor,
27 const std::string& application_name); 27 const std::string& application_name);
28 28
29 virtual ~HostEventLoggerPosix(); 29 virtual ~HostEventLoggerPosix();
30 30
31 // HostStatusObserver implementation. These methods will be called from the 31 // HostStatusObserver implementation. These methods will be called from the
32 // network thread. 32 // network thread.
33 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 33 virtual void OnClientAuthenticated(const std::string& jid) override;
34 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 34 virtual void OnClientDisconnected(const std::string& jid) override;
35 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; 35 virtual void OnAccessDenied(const std::string& jid) override;
36 virtual void OnClientRouteChange( 36 virtual void OnClientRouteChange(
37 const std::string& jid, 37 const std::string& jid,
38 const std::string& channel_name, 38 const std::string& channel_name,
39 const protocol::TransportRoute& route) OVERRIDE; 39 const protocol::TransportRoute& route) override;
40 virtual void OnStart(const std::string& xmpp_login) OVERRIDE; 40 virtual void OnStart(const std::string& xmpp_login) override;
41 virtual void OnShutdown() OVERRIDE; 41 virtual void OnShutdown() override;
42 42
43 private: 43 private:
44 void Log(const std::string& message); 44 void Log(const std::string& message);
45 45
46 base::WeakPtr<HostStatusMonitor> monitor_; 46 base::WeakPtr<HostStatusMonitor> monitor_;
47 std::string application_name_; 47 std::string application_name_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(HostEventLoggerPosix); 49 DISALLOW_COPY_AND_ASSIGN(HostEventLoggerPosix);
50 }; 50 };
51 51
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 // static 105 // static
106 scoped_ptr<HostEventLogger> HostEventLogger::Create( 106 scoped_ptr<HostEventLogger> HostEventLogger::Create(
107 base::WeakPtr<HostStatusMonitor> monitor, 107 base::WeakPtr<HostStatusMonitor> monitor,
108 const std::string& application_name) { 108 const std::string& application_name) {
109 return make_scoped_ptr(new HostEventLoggerPosix(monitor, application_name)); 109 return make_scoped_ptr(new HostEventLoggerPosix(monitor, application_name));
110 } 110 }
111 111
112 } // namespace remoting 112 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_change_notification_listener_unittest.cc ('k') | remoting/host/host_event_logger_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698