Prepare to remove old OnFailure implementations
This removes usage of the old OnFailure methods on CreateSessionDescriptionObserver and SetSessionDescriptionObserver, so that WebRTC will continue to compile once all the default implementations are removed. Bug: chromium:589455 Change-Id: Id67295b3ad0c30d24d79589c2041acdd507a19f3 Reviewed-on: https://webrtc-review.googlesource.com/78480 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23427}
This commit is contained in:
committed by
Commit Bot
parent
26bc6695cd
commit
73771a893f
@ -36,7 +36,7 @@ class CreateOfferObserver : public webrtc::CreateSessionDescriptionObserver {
|
||||
explicit CreateOfferObserver(rtc::scoped_refptr<webrtc::PeerConnectionInterface> pc);
|
||||
|
||||
void OnSuccess(webrtc::SessionDescriptionInterface* desc) override;
|
||||
void OnFailure(const std::string& error) override;
|
||||
void OnFailure(webrtc::RTCError error) override;
|
||||
|
||||
private:
|
||||
const rtc::scoped_refptr<webrtc::PeerConnectionInterface> pc_;
|
||||
@ -50,7 +50,7 @@ class SetRemoteSessionDescriptionObserver : public webrtc::SetRemoteDescriptionO
|
||||
class SetLocalSessionDescriptionObserver : public webrtc::SetSessionDescriptionObserver {
|
||||
public:
|
||||
void OnSuccess() override;
|
||||
void OnFailure(const std::string& error) override;
|
||||
void OnFailure(webrtc::RTCError error) override;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
@ -218,8 +218,8 @@ void CreateOfferObserver::OnSuccess(webrtc::SessionDescriptionInterface* desc) {
|
||||
new rtc::RefCountedObject<SetRemoteSessionDescriptionObserver>());
|
||||
}
|
||||
|
||||
void CreateOfferObserver::OnFailure(const std::string& error) {
|
||||
RTC_LOG(LS_INFO) << "Failed to create offer: " << error;
|
||||
void CreateOfferObserver::OnFailure(webrtc::RTCError error) {
|
||||
RTC_LOG(LS_INFO) << "Failed to create offer: " << error.message();
|
||||
}
|
||||
|
||||
void SetRemoteSessionDescriptionObserver::OnSetRemoteDescriptionComplete(webrtc::RTCError error) {
|
||||
@ -230,8 +230,8 @@ void SetLocalSessionDescriptionObserver::OnSuccess() {
|
||||
RTC_LOG(LS_INFO) << "Set local description success!";
|
||||
}
|
||||
|
||||
void SetLocalSessionDescriptionObserver::OnFailure(const std::string& error) {
|
||||
RTC_LOG(LS_INFO) << "Set local description failure: " << error;
|
||||
void SetLocalSessionDescriptionObserver::OnFailure(webrtc::RTCError error) {
|
||||
RTC_LOG(LS_INFO) << "Set local description failure: " << error.message();
|
||||
}
|
||||
|
||||
} // namespace webrtc_examples
|
||||
|
||||
Reference in New Issue
Block a user