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

Unified Diff: remoting/protocol/jingle_session.h

Issue 18295009: Allow transport candidates to arrive after the authentication accepted message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out pending candidate handling Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session.h
diff --git a/remoting/protocol/jingle_session.h b/remoting/protocol/jingle_session.h
index 5466d1d09c6747acf2b93b5e321c19acadeec524..189cb53c45fb2cabb4af82159c7cba4507942390 100644
--- a/remoting/protocol/jingle_session.h
+++ b/remoting/protocol/jingle_session.h
@@ -86,6 +86,9 @@ class JingleSession : public Session,
scoped_ptr<Authenticator> authenticator,
scoped_ptr<CandidateSessionConfig> config);
+ // Adds to a new channel the remote candidates received before it was created.
+ void AddPendingRemoteCandidates(Transport* channel, const std::string& name);
+
// Called by JingleSessionManager for incoming connections.
void InitializeIncomingConnection(const JingleMessage& initiate_message,
scoped_ptr<Authenticator> authenticator);
@@ -166,6 +169,9 @@ class JingleSession : public Session,
base::OneShotTimer<JingleSession> transport_infos_timer_;
std::list<JingleMessage::NamedCandidate> pending_candidates_;
+ // Pending remote candidates, received before the local channels were created.
+ std::list<JingleMessage::NamedCandidate> pending_remote_candidates_;
+
DISALLOW_COPY_AND_ASSIGN(JingleSession);
};
« no previous file with comments | « no previous file | remoting/protocol/jingle_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698