| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // |certificate|. | 107 // |certificate|. |
| 108 WebRtcSessionDescriptionFactory( | 108 WebRtcSessionDescriptionFactory( |
| 109 rtc::Thread* signaling_thread, | 109 rtc::Thread* signaling_thread, |
| 110 cricket::ChannelManager* channel_manager, | 110 cricket::ChannelManager* channel_manager, |
| 111 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate, | 111 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate, |
| 112 WebRtcSession* session, | 112 WebRtcSession* session, |
| 113 const std::string& session_id); | 113 const std::string& session_id); |
| 114 virtual ~WebRtcSessionDescriptionFactory(); | 114 virtual ~WebRtcSessionDescriptionFactory(); |
| 115 | 115 |
| 116 static void CopyCandidatesFromSessionDescription( | 116 static void CopyCandidatesFromSessionDescription( |
| 117 const SessionDescriptionInterface* source_desc, | 117 const SessionDescriptionInterface* source_desc, |
| 118 SessionDescriptionInterface* dest_desc); | 118 cricket::MediaType media_type, |
| 119 SessionDescriptionInterface* dest_desc); |
| 119 | 120 |
| 120 void CreateOffer( | 121 void CreateOffer( |
| 121 CreateSessionDescriptionObserver* observer, | 122 CreateSessionDescriptionObserver* observer, |
| 122 const PeerConnectionInterface::RTCOfferAnswerOptions& options, | 123 const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| 123 const cricket::MediaSessionOptions& session_options); | 124 const cricket::MediaSessionOptions& session_options); |
| 124 void CreateAnswer(CreateSessionDescriptionObserver* observer, | 125 void CreateAnswer(CreateSessionDescriptionObserver* observer, |
| 125 const MediaConstraintsInterface* constraints, | 126 const MediaConstraintsInterface* constraints, |
| 126 const cricket::MediaSessionOptions& session_options); | 127 const cricket::MediaSessionOptions& session_options); |
| 127 | 128 |
| 128 void SetSdesPolicy(cricket::SecurePolicy secure_policy); | 129 void SetSdesPolicy(cricket::SecurePolicy secure_policy); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // TODO(jiayl): remove the dependency on session once bug 2264 is fixed. | 185 // TODO(jiayl): remove the dependency on session once bug 2264 is fixed. |
| 185 WebRtcSession* const session_; | 186 WebRtcSession* const session_; |
| 186 const std::string session_id_; | 187 const std::string session_id_; |
| 187 CertificateRequestState certificate_request_state_; | 188 CertificateRequestState certificate_request_state_; |
| 188 | 189 |
| 189 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); | 190 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); |
| 190 }; | 191 }; |
| 191 } // namespace webrtc | 192 } // namespace webrtc |
| 192 | 193 |
| 193 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ | 194 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ |
| OLD | NEW |