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

Side by Side Diff: remoting/protocol/jingle_session.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
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 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_H_
6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 25 matching lines...) Expand all
36 class PseudoTcpChannelFactory; 36 class PseudoTcpChannelFactory;
37 37
38 // JingleSessionManager and JingleSession implement the subset of the 38 // JingleSessionManager and JingleSession implement the subset of the
39 // Jingle protocol used in Chromoting. Instances of this class are 39 // Jingle protocol used in Chromoting. Instances of this class are
40 // created by the JingleSessionManager. 40 // created by the JingleSessionManager.
41 class JingleSession : public base::NonThreadSafe, 41 class JingleSession : public base::NonThreadSafe,
42 public Session, 42 public Session,
43 public DatagramChannelFactory, 43 public DatagramChannelFactory,
44 public Transport::EventHandler { 44 public Transport::EventHandler {
45 public: 45 public:
46 virtual ~JingleSession(); 46 ~JingleSession() override;
47 47
48 // Session interface. 48 // Session interface.
49 virtual void SetEventHandler(Session::EventHandler* event_handler) override; 49 void SetEventHandler(Session::EventHandler* event_handler) override;
50 virtual ErrorCode error() override; 50 ErrorCode error() override;
51 virtual const std::string& jid() override; 51 const std::string& jid() override;
52 virtual const CandidateSessionConfig* candidate_config() override; 52 const CandidateSessionConfig* candidate_config() override;
53 virtual const SessionConfig& config() override; 53 const SessionConfig& config() override;
54 virtual void set_config(const SessionConfig& config) override; 54 void set_config(const SessionConfig& config) override;
55 virtual StreamChannelFactory* GetTransportChannelFactory() override; 55 StreamChannelFactory* GetTransportChannelFactory() override;
56 virtual StreamChannelFactory* GetMultiplexedChannelFactory() override; 56 StreamChannelFactory* GetMultiplexedChannelFactory() override;
57 virtual void Close() override; 57 void Close() override;
58 58
59 // DatagramChannelFactory interface. 59 // DatagramChannelFactory interface.
60 virtual void CreateChannel(const std::string& name, 60 void CreateChannel(const std::string& name,
61 const ChannelCreatedCallback& callback) override; 61 const ChannelCreatedCallback& callback) override;
62 virtual void CancelChannelCreation(const std::string& name) override; 62 void CancelChannelCreation(const std::string& name) override;
63 63
64 // Transport::EventHandler interface. 64 // Transport::EventHandler interface.
65 virtual void OnTransportCandidate( 65 void OnTransportCandidate(Transport* transport,
66 Transport* transport, 66 const cricket::Candidate& candidate) override;
67 const cricket::Candidate& candidate) override; 67 void OnTransportRouteChange(Transport* transport,
68 virtual void OnTransportRouteChange(Transport* transport, 68 const TransportRoute& route) override;
69 const TransportRoute& route) override; 69 void OnTransportFailed(Transport* transport) override;
70 virtual void OnTransportFailed(Transport* transport) override; 70 void OnTransportDeleted(Transport* transport) override;
71 virtual void OnTransportDeleted(Transport* transport) override;
72 71
73 private: 72 private:
74 friend class JingleSessionManager; 73 friend class JingleSessionManager;
75 74
76 typedef std::map<std::string, Transport*> ChannelsMap; 75 typedef std::map<std::string, Transport*> ChannelsMap;
77 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback; 76 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback;
78 77
79 explicit JingleSession(JingleSessionManager* session_manager); 78 explicit JingleSession(JingleSessionManager* session_manager);
80 79
81 // Start connection by sending session-initiate message. 80 // Start connection by sending session-initiate message.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 182
184 base::WeakPtrFactory<JingleSession> weak_factory_; 183 base::WeakPtrFactory<JingleSession> weak_factory_;
185 184
186 DISALLOW_COPY_AND_ASSIGN(JingleSession); 185 DISALLOW_COPY_AND_ASSIGN(JingleSession);
187 }; 186 };
188 187
189 } // namespace protocol 188 } // namespace protocol
190 } // namespace remoting 189 } // namespace remoting
191 190
192 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ 191 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/it2me_host_authenticator_factory.h ('k') | remoting/protocol/jingle_session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698