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

Side by Side Diff: remoting/client/plugin/delegating_signal_strategy.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
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_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_
6 #define REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ 6 #define REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "remoting/signaling/signal_strategy.h" 10 #include "remoting/signaling/signal_strategy.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } // namespace base 14 } // namespace base
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 class DelegatingSignalStrategy : public SignalStrategy { 18 class DelegatingSignalStrategy : public SignalStrategy {
19 public: 19 public:
20 typedef base::Callback<void(const std::string&)> SendIqCallback; 20 typedef base::Callback<void(const std::string&)> SendIqCallback;
21 21
22 DelegatingSignalStrategy(std::string local_jid, 22 DelegatingSignalStrategy(std::string local_jid,
23 const SendIqCallback& send_iq_callback); 23 const SendIqCallback& send_iq_callback);
24 virtual ~DelegatingSignalStrategy(); 24 virtual ~DelegatingSignalStrategy();
25 25
26 void OnIncomingMessage(const std::string& message); 26 void OnIncomingMessage(const std::string& message);
27 27
28 // SignalStrategy interface. 28 // SignalStrategy interface.
29 virtual void Connect() OVERRIDE; 29 virtual void Connect() override;
30 virtual void Disconnect() OVERRIDE; 30 virtual void Disconnect() override;
31 virtual State GetState() const OVERRIDE; 31 virtual State GetState() const override;
32 virtual Error GetError() const OVERRIDE; 32 virtual Error GetError() const override;
33 virtual std::string GetLocalJid() const OVERRIDE; 33 virtual std::string GetLocalJid() const override;
34 virtual void AddListener(Listener* listener) OVERRIDE; 34 virtual void AddListener(Listener* listener) override;
35 virtual void RemoveListener(Listener* listener) OVERRIDE; 35 virtual void RemoveListener(Listener* listener) override;
36 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE; 36 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) override;
37 virtual std::string GetNextId() OVERRIDE; 37 virtual std::string GetNextId() override;
38 38
39 private: 39 private:
40 std::string local_jid_; 40 std::string local_jid_;
41 SendIqCallback send_iq_callback_; 41 SendIqCallback send_iq_callback_;
42 42
43 ObserverList<Listener> listeners_; 43 ObserverList<Listener> listeners_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(DelegatingSignalStrategy); 45 DISALLOW_COPY_AND_ASSIGN(DelegatingSignalStrategy);
46 }; 46 };
47 47
48 } // namespace remoting 48 } // namespace remoting
49 49
50 #endif // REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_ 50 #endif // REMOTING_CLIENT_PLUGIN_DELEGATING_SIGNAL_STRATEGY_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/media_source_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698