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

Side by Side Diff: remoting/signaling/fake_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
« no previous file with comments | « remoting/protocol/v2_authenticator.h ('k') | remoting/signaling/iq_sender.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 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_SIGNALING_FAKE_SIGNAL_STRATEGY_H_ 5 #ifndef REMOTING_SIGNALING_FAKE_SIGNAL_STRATEGY_H_
6 #define REMOTING_SIGNALING_FAKE_SIGNAL_STRATEGY_H_ 6 #define REMOTING_SIGNALING_FAKE_SIGNAL_STRATEGY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 virtual ~FakeSignalStrategy(); 32 virtual ~FakeSignalStrategy();
33 33
34 const std::list<buzz::XmlElement*>& received_messages() { 34 const std::list<buzz::XmlElement*>& received_messages() {
35 return received_messages_; 35 return received_messages_;
36 } 36 }
37 37
38 // Connects current FakeSignalStrategy to receive messages from |peer|. 38 // Connects current FakeSignalStrategy to receive messages from |peer|.
39 void ConnectTo(FakeSignalStrategy* peer); 39 void ConnectTo(FakeSignalStrategy* peer);
40 40
41 // SignalStrategy interface. 41 // SignalStrategy interface.
42 virtual void Connect() OVERRIDE; 42 virtual void Connect() override;
43 virtual void Disconnect() OVERRIDE; 43 virtual void Disconnect() override;
44 virtual State GetState() const OVERRIDE; 44 virtual State GetState() const override;
45 virtual Error GetError() const OVERRIDE; 45 virtual Error GetError() const override;
46 virtual std::string GetLocalJid() const OVERRIDE; 46 virtual std::string GetLocalJid() const override;
47 virtual void AddListener(Listener* listener) OVERRIDE; 47 virtual void AddListener(Listener* listener) override;
48 virtual void RemoveListener(Listener* listener) OVERRIDE; 48 virtual void RemoveListener(Listener* listener) override;
49 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE; 49 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) override;
50 virtual std::string GetNextId() OVERRIDE; 50 virtual std::string GetNextId() override;
51 51
52 private: 52 private:
53 typedef base::Callback<void(scoped_ptr<buzz::XmlElement> message)> 53 typedef base::Callback<void(scoped_ptr<buzz::XmlElement> message)>
54 PeerCallback; 54 PeerCallback;
55 55
56 static void DeliverMessageOnThread( 56 static void DeliverMessageOnThread(
57 scoped_refptr<base::SingleThreadTaskRunner> thread, 57 scoped_refptr<base::SingleThreadTaskRunner> thread,
58 base::WeakPtr<FakeSignalStrategy> target, 58 base::WeakPtr<FakeSignalStrategy> target,
59 scoped_ptr<buzz::XmlElement> stanza); 59 scoped_ptr<buzz::XmlElement> stanza);
60 60
(...skipping 13 matching lines...) Expand all
74 std::list<buzz::XmlElement*> received_messages_; 74 std::list<buzz::XmlElement*> received_messages_;
75 75
76 base::WeakPtrFactory<FakeSignalStrategy> weak_factory_; 76 base::WeakPtrFactory<FakeSignalStrategy> weak_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(FakeSignalStrategy); 78 DISALLOW_COPY_AND_ASSIGN(FakeSignalStrategy);
79 }; 79 };
80 80
81 } // namespace remoting 81 } // namespace remoting
82 82
83 #endif // REMOTING_SIGNALING_FAKE_SIGNAL_STRATEGY_H_ 83 #endif // REMOTING_SIGNALING_FAKE_SIGNAL_STRATEGY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/v2_authenticator.h ('k') | remoting/signaling/iq_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698