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

Side by Side Diff: remoting/protocol/jingle_session_manager.h

Issue 2417913002: Process incoming IQs in the same order that they were sent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/jingle_session.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('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) 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_MANAGER_H_ 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_
6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 private: 50 private:
51 friend class JingleSession; 51 friend class JingleSession;
52 52
53 // SignalStrategy::Listener interface. 53 // SignalStrategy::Listener interface.
54 void OnSignalStrategyStateChange(SignalStrategy::State state) override; 54 void OnSignalStrategyStateChange(SignalStrategy::State state) override;
55 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override; 55 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override;
56 56
57 typedef std::map<std::string, JingleSession*> SessionsMap; 57 typedef std::map<std::string, JingleSession*> SessionsMap;
58 58
59 IqSender* iq_sender() { return iq_sender_.get(); } 59 IqSender* iq_sender() { return iq_sender_.get(); }
60 void SendReply(const buzz::XmlElement* original_stanza, 60 void SendReply(std::unique_ptr<buzz::XmlElement> original_stanza,
61 JingleMessageReply::ErrorType error); 61 JingleMessageReply::ErrorType error);
62 62
63 // Called by JingleSession when it is being destroyed. 63 // Called by JingleSession when it is being destroyed.
64 void SessionDestroyed(JingleSession* session); 64 void SessionDestroyed(JingleSession* session);
65 65
66 SignalStrategy* signal_strategy_ = nullptr; 66 SignalStrategy* signal_strategy_ = nullptr;
67 IncomingSessionCallback incoming_session_callback_; 67 IncomingSessionCallback incoming_session_callback_;
68 std::unique_ptr<CandidateSessionConfig> protocol_config_; 68 std::unique_ptr<CandidateSessionConfig> protocol_config_;
69 69
70 std::unique_ptr<AuthenticatorFactory> authenticator_factory_; 70 std::unique_ptr<AuthenticatorFactory> authenticator_factory_;
71 std::unique_ptr<IqSender> iq_sender_; 71 std::unique_ptr<IqSender> iq_sender_;
72 72
73 SessionsMap sessions_; 73 SessionsMap sessions_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); 75 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager);
76 }; 76 };
77 77
78 } // namespace protocol 78 } // namespace protocol
79 } // namespace remoting 79 } // namespace remoting
80 80
81 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ 81 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698