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

Side by Side Diff: remoting/host/ipc_host_event_logger.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/ipc_desktop_environment.h ('k') | remoting/host/ipc_input_injector.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_IPC_HOST_EVENT_LOGGER_H_ 5 #ifndef REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_
6 #define REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ 6 #define REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 class HostStatusMonitor; 24 class HostStatusMonitor;
25 25
26 class IpcHostEventLogger 26 class IpcHostEventLogger
27 : public base::NonThreadSafe, 27 : public base::NonThreadSafe,
28 public HostEventLogger, 28 public HostEventLogger,
29 public HostStatusObserver { 29 public HostStatusObserver {
30 public: 30 public:
31 // Initializes the logger. |daemon_channel| must outlive this object. 31 // Initializes the logger. |daemon_channel| must outlive this object.
32 IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor, 32 IpcHostEventLogger(base::WeakPtr<HostStatusMonitor> monitor,
33 IPC::Sender* daemon_channel); 33 IPC::Sender* daemon_channel);
34 virtual ~IpcHostEventLogger(); 34 ~IpcHostEventLogger() override;
35 35
36 // HostStatusObserver interface. 36 // HostStatusObserver interface.
37 virtual void OnAccessDenied(const std::string& jid) override; 37 void OnAccessDenied(const std::string& jid) override;
38 virtual void OnClientAuthenticated(const std::string& jid) override; 38 void OnClientAuthenticated(const std::string& jid) override;
39 virtual void OnClientConnected(const std::string& jid) override; 39 void OnClientConnected(const std::string& jid) override;
40 virtual void OnClientDisconnected(const std::string& jid) override; 40 void OnClientDisconnected(const std::string& jid) override;
41 virtual void OnClientRouteChange( 41 void OnClientRouteChange(const std::string& jid,
42 const std::string& jid, 42 const std::string& channel_name,
43 const std::string& channel_name, 43 const protocol::TransportRoute& route) override;
44 const protocol::TransportRoute& route) override; 44 void OnStart(const std::string& xmpp_login) override;
45 virtual void OnStart(const std::string& xmpp_login) override; 45 void OnShutdown() override;
46 virtual void OnShutdown() override;
47 46
48 private: 47 private:
49 // Used to report host status events to the daemon. 48 // Used to report host status events to the daemon.
50 IPC::Sender* daemon_channel_; 49 IPC::Sender* daemon_channel_;
51 50
52 base::WeakPtr<HostStatusMonitor> monitor_; 51 base::WeakPtr<HostStatusMonitor> monitor_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(IpcHostEventLogger); 53 DISALLOW_COPY_AND_ASSIGN(IpcHostEventLogger);
55 }; 54 };
56 55
57 } 56 }
58 57
59 #endif // REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_ 58 #endif // REMOTING_HOST_IPC_HOST_EVENT_LOGGER_H_
OLDNEW
« no previous file with comments | « remoting/host/ipc_desktop_environment.h ('k') | remoting/host/ipc_input_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698