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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // This class is used to create offer/answer session description with regards to | 84 // This class is used to create offer/answer session description with regards to |
85 // the async DTLS identity generation for WebRtcSession. | 85 // the async DTLS identity generation for WebRtcSession. |
86 // It queues the create offer/answer request until the DTLS identity | 86 // It queues the create offer/answer request until the DTLS identity |
87 // request has completed, i.e. when OnIdentityRequestFailed or OnIdentityReady | 87 // request has completed, i.e. when OnIdentityRequestFailed or OnIdentityReady |
88 // is called. | 88 // is called. |
89 class WebRtcSessionDescriptionFactory : public rtc::MessageHandler, | 89 class WebRtcSessionDescriptionFactory : public rtc::MessageHandler, |
90 public sigslot::has_slots<> { | 90 public sigslot::has_slots<> { |
91 public: | 91 public: |
92 // Construct with DTLS disabled. | 92 // Construct with DTLS disabled. |
93 WebRtcSessionDescriptionFactory( | 93 WebRtcSessionDescriptionFactory(rtc::Thread* signaling_thread, |
94 rtc::Thread* signaling_thread, | 94 cricket::ChannelManager* channel_manager, |
95 cricket::ChannelManager* channel_manager, | 95 MediaStreamSignaling* mediastream_signaling, |
96 MediaStreamSignaling* mediastream_signaling, | 96 WebRtcSession* session, |
97 WebRtcSession* session, | 97 const std::string& session_id, |
98 const std::string& session_id, | 98 cricket::DataChannelType dct); |
99 cricket::DataChannelType dct); | |
100 | 99 |
101 // Construct with DTLS enabled using the specified |dtls_identity_store| to | 100 // Construct with DTLS enabled using the specified |dtls_identity_store| to |
102 // generate a certificate. | 101 // generate a certificate. |
103 WebRtcSessionDescriptionFactory( | 102 WebRtcSessionDescriptionFactory( |
104 rtc::Thread* signaling_thread, | 103 rtc::Thread* signaling_thread, |
105 cricket::ChannelManager* channel_manager, | 104 cricket::ChannelManager* channel_manager, |
106 MediaStreamSignaling* mediastream_signaling, | 105 MediaStreamSignaling* mediastream_signaling, |
107 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 106 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
108 WebRtcSession* session, | 107 WebRtcSession* session, |
109 const std::string& session_id, | 108 const std::string& session_id, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 WebRtcSession* const session_; | 194 WebRtcSession* const session_; |
196 const std::string session_id_; | 195 const std::string session_id_; |
197 const cricket::DataChannelType data_channel_type_; | 196 const cricket::DataChannelType data_channel_type_; |
198 CertificateRequestState certificate_request_state_; | 197 CertificateRequestState certificate_request_state_; |
199 | 198 |
200 DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); | 199 DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); |
201 }; | 200 }; |
202 } // namespace webrtc | 201 } // namespace webrtc |
203 | 202 |
204 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ | 203 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ |
OLD | NEW |