OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 virtual void OnTransportRequestSignaling(cricket::Transport* transport); | 292 virtual void OnTransportRequestSignaling(cricket::Transport* transport); |
293 virtual void OnTransportConnecting(cricket::Transport* transport); | 293 virtual void OnTransportConnecting(cricket::Transport* transport); |
294 virtual void OnTransportWritable(cricket::Transport* transport); | 294 virtual void OnTransportWritable(cricket::Transport* transport); |
295 virtual void OnTransportCompleted(cricket::Transport* transport); | 295 virtual void OnTransportCompleted(cricket::Transport* transport); |
296 virtual void OnTransportFailed(cricket::Transport* transport); | 296 virtual void OnTransportFailed(cricket::Transport* transport); |
297 virtual void OnTransportProxyCandidatesReady( | 297 virtual void OnTransportProxyCandidatesReady( |
298 cricket::TransportProxy* proxy, | 298 cricket::TransportProxy* proxy, |
299 const cricket::Candidates& candidates); | 299 const cricket::Candidates& candidates); |
300 virtual void OnCandidatesAllocationDone(); | 300 virtual void OnCandidatesAllocationDone(); |
301 | 301 |
302 // Creates local session description with audio and video contents. | |
303 bool CreateDefaultLocalDescription(); | |
304 // Enables media channels to allow sending of media. | 302 // Enables media channels to allow sending of media. |
305 void EnableChannels(); | 303 void EnableChannels(); |
306 // Creates a JsepIceCandidate and adds it to the local session description | 304 // Creates a JsepIceCandidate and adds it to the local session description |
307 // and notify observers. Called when a new local candidate have been found. | 305 // and notify observers. Called when a new local candidate have been found. |
308 void ProcessNewLocalCandidate(const std::string& content_name, | 306 void ProcessNewLocalCandidate(const std::string& content_name, |
309 const cricket::Candidates& candidates); | 307 const cricket::Candidates& candidates); |
310 // Returns the media index for a local ice candidate given the content name. | 308 // Returns the media index for a local ice candidate given the content name. |
311 // Returns false if the local session description does not have a media | 309 // Returns false if the local session description does not have a media |
312 // content called |content_name|. | 310 // content called |content_name|. |
313 bool GetLocalCandidateMediaIndex(const std::string& content_name, | 311 bool GetLocalCandidateMediaIndex(const std::string& content_name, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 PeerConnectionInterface::BundlePolicy bundle_policy_; | 412 PeerConnectionInterface::BundlePolicy bundle_policy_; |
415 | 413 |
416 // Declares the RTCP mux policy for the WebRTCSession. | 414 // Declares the RTCP mux policy for the WebRTCSession. |
417 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 415 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
418 | 416 |
419 DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 417 DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
420 }; | 418 }; |
421 } // namespace webrtc | 419 } // namespace webrtc |
422 | 420 |
423 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ | 421 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ |
OLD | NEW |