| Index: remoting/protocol/jingle_session.h
|
| diff --git a/remoting/protocol/jingle_session.h b/remoting/protocol/jingle_session.h
|
| index 584aeae06624584c14097545e00074e2834b6043..eb30e50ffdc9c4c9e5cce6912394db1ac025b8b9 100644
|
| --- a/remoting/protocol/jingle_session.h
|
| +++ b/remoting/protocol/jingle_session.h
|
| @@ -51,7 +51,7 @@
|
| const std::string& jid() override;
|
| const CandidateSessionConfig* candidate_config() override;
|
| const SessionConfig& config() override;
|
| - void set_config(scoped_ptr<SessionConfig> config) override;
|
| + void set_config(const SessionConfig& config) override;
|
| StreamChannelFactory* GetTransportChannelFactory() override;
|
| StreamChannelFactory* GetMultiplexedChannelFactory() override;
|
| void Close() override;
|
| @@ -62,9 +62,6 @@
|
| void CancelChannelCreation(const std::string& name) override;
|
|
|
| // Transport::EventHandler interface.
|
| - void OnTransportIceCredentials(Transport* transport,
|
| - const std::string& ufrag,
|
| - const std::string& password) override;
|
| void OnTransportCandidate(Transport* transport,
|
| const cricket::Candidate& candidate) override;
|
| void OnTransportRouteChange(Transport* transport,
|
| @@ -85,9 +82,8 @@
|
| scoped_ptr<Authenticator> authenticator,
|
| scoped_ptr<CandidateSessionConfig> config);
|
|
|
| - // Passes transport info to a new |channel| in case it was received before the
|
| - // channel was created.
|
| - void AddPendingRemoteTransportInfo(Transport* channel);
|
| + // 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,
|
| @@ -103,10 +99,6 @@
|
| void OnMessageResponse(JingleMessage::ActionType request_type,
|
| IqRequest* request,
|
| const buzz::XmlElement* response);
|
| -
|
| - // Creates empty |pending_transport_info_message_| and schedules timer for
|
| - // SentTransportInfo() to sent the message later.
|
| - void EnsurePendingTransportInfoMessage();
|
|
|
| // Sends transport-info message with candidates from |pending_candidates_|.
|
| void SendTransportInfo();
|
| @@ -166,7 +158,8 @@
|
| State state_;
|
| ErrorCode error_;
|
|
|
| - scoped_ptr<SessionConfig> config_;
|
| + SessionConfig config_;
|
| + bool config_is_set_;
|
|
|
| scoped_ptr<Authenticator> authenticator_;
|
|
|
| @@ -181,12 +174,10 @@
|
| scoped_ptr<SecureChannelFactory> secure_channel_factory_;
|
| scoped_ptr<ChannelMultiplexer> channel_multiplexer_;
|
|
|
| - scoped_ptr<JingleMessage> pending_transport_info_message_;
|
| - base::OneShotTimer<JingleSession> transport_info_timer_;
|
| + base::OneShotTimer<JingleSession> transport_infos_timer_;
|
| + std::list<JingleMessage::NamedCandidate> pending_candidates_;
|
|
|
| - // Pending remote transport info received before the local channels were
|
| - // created.
|
| - std::list<JingleMessage::IceCredentials> pending_remote_ice_credentials_;
|
| + // Pending remote candidates, received before the local channels were created.
|
| std::list<JingleMessage::NamedCandidate> pending_remote_candidates_;
|
|
|
| base::WeakPtrFactory<JingleSession> weak_factory_;
|
|
|