| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 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 13 matching lines...) Expand all Loading... |
| 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "talk/app/webrtc/dtlsidentitystore.h" | 28 #include "talk/app/webrtc/dtlsidentitystore.h" |
| 29 | 29 |
| 30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" | 30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" |
| 31 #include "webrtc/base/logging.h" | 31 #include "webrtc/base/logging.h" |
| 32 | 32 |
| 33 using webrtc::DTLSIdentityRequestObserver; | 33 using webrtc::DTLSIdentityRequestObserver; |
| 34 using webrtc::WebRtcSessionDescriptionFactory; | |
| 35 | 34 |
| 36 namespace webrtc { | 35 namespace webrtc { |
| 37 | 36 |
| 38 namespace { | 37 namespace { |
| 39 | 38 |
| 40 enum { | 39 enum { |
| 41 MSG_DESTROY, | 40 MSG_DESTROY, |
| 42 MSG_GENERATE_IDENTITY, | 41 MSG_GENERATE_IDENTITY, |
| 43 MSG_GENERATE_IDENTITY_RESULT, | 42 MSG_GENERATE_IDENTITY_RESULT, |
| 44 MSG_RETURN_FREE_IDENTITY | 43 MSG_RETURN_FREE_IDENTITY |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 225 |
| 227 void DtlsIdentityStore::PostGenerateIdentityResult_w( | 226 void DtlsIdentityStore::PostGenerateIdentityResult_w( |
| 228 rtc::scoped_ptr<rtc::SSLIdentity> identity) { | 227 rtc::scoped_ptr<rtc::SSLIdentity> identity) { |
| 229 DCHECK(rtc::Thread::Current() == worker_thread_); | 228 DCHECK(rtc::Thread::Current() == worker_thread_); |
| 230 | 229 |
| 231 IdentityResultMessageData* msg = | 230 IdentityResultMessageData* msg = |
| 232 new IdentityResultMessageData(identity.release()); | 231 new IdentityResultMessageData(identity.release()); |
| 233 signaling_thread_->Post(this, MSG_GENERATE_IDENTITY_RESULT, msg); | 232 signaling_thread_->Post(this, MSG_GENERATE_IDENTITY_RESULT, msg); |
| 234 } | 233 } |
| 235 } // namespace webrtc | 234 } // namespace webrtc |
| OLD | NEW |