| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 IDENTITY_WAITING, | 126 IDENTITY_WAITING, |
| 127 IDENTITY_SUCCEEDED, | 127 IDENTITY_SUCCEEDED, |
| 128 IDENTITY_FAILED, | 128 IDENTITY_FAILED, |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 // MessageHandler implementation. | 131 // MessageHandler implementation. |
| 132 virtual void OnMessage(rtc::Message* msg); | 132 virtual void OnMessage(rtc::Message* msg); |
| 133 | 133 |
| 134 void InternalCreateOffer(CreateSessionDescriptionRequest request); | 134 void InternalCreateOffer(CreateSessionDescriptionRequest request); |
| 135 void InternalCreateAnswer(CreateSessionDescriptionRequest request); | 135 void InternalCreateAnswer(CreateSessionDescriptionRequest request); |
| 136 // Posts failure notifications for all pending session description requests. |
| 137 void FailPendingRequests(const std::string& reason); |
| 136 void PostCreateSessionDescriptionFailed( | 138 void PostCreateSessionDescriptionFailed( |
| 137 CreateSessionDescriptionObserver* observer, | 139 CreateSessionDescriptionObserver* observer, |
| 138 const std::string& error); | 140 const std::string& error); |
| 139 void PostCreateSessionDescriptionSucceeded( | 141 void PostCreateSessionDescriptionSucceeded( |
| 140 CreateSessionDescriptionObserver* observer, | 142 CreateSessionDescriptionObserver* observer, |
| 141 SessionDescriptionInterface* description); | 143 SessionDescriptionInterface* description); |
| 142 | 144 |
| 143 void OnIdentityRequestFailed(int error); | 145 void OnIdentityRequestFailed(int error); |
| 144 void SetIdentity(rtc::SSLIdentity* identity); | 146 void SetIdentity(rtc::SSLIdentity* identity); |
| 145 | 147 |
| 146 std::queue<CreateSessionDescriptionRequest> | 148 std::queue<CreateSessionDescriptionRequest> |
| 147 create_session_description_requests_; | 149 create_session_description_requests_; |
| 148 rtc::Thread* signaling_thread_; | 150 rtc::Thread* const signaling_thread_; |
| 149 MediaStreamSignaling* mediastream_signaling_; | 151 MediaStreamSignaling* const mediastream_signaling_; |
| 150 cricket::TransportDescriptionFactory transport_desc_factory_; | 152 cricket::TransportDescriptionFactory transport_desc_factory_; |
| 151 cricket::MediaSessionDescriptionFactory session_desc_factory_; | 153 cricket::MediaSessionDescriptionFactory session_desc_factory_; |
| 152 uint64 session_version_; | 154 uint64 session_version_; |
| 153 rtc::scoped_ptr<DTLSIdentityServiceInterface> identity_service_; | 155 rtc::scoped_ptr<DTLSIdentityServiceInterface> identity_service_; |
| 154 rtc::scoped_refptr<WebRtcIdentityRequestObserver> | 156 rtc::scoped_refptr<WebRtcIdentityRequestObserver> identity_request_observer_; |
| 155 identity_request_observer_; | 157 WebRtcSession* const session_; |
| 156 WebRtcSession* session_; | 158 const std::string session_id_; |
| 157 std::string session_id_; | 159 const cricket::DataChannelType data_channel_type_; |
| 158 cricket::DataChannelType data_channel_type_; | |
| 159 IdentityRequestState identity_request_state_; | 160 IdentityRequestState identity_request_state_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); | 162 DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); |
| 162 }; | 163 }; |
| 163 } // namespace webrtc | 164 } // namespace webrtc |
| 164 | 165 |
| 165 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ | 166 #endif // TALK_APP_WEBRTC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ |
| OLD | NEW |