Implement current/pending session description methods.
BUG=webrtc:6917
Review-Url: https://codereview.webrtc.org/2590753002
Cr-Commit-Position: refs/heads/master@{#15722}
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
index 9c2301c..e81eee2 100644
--- a/webrtc/api/peerconnectioninterface.h
+++ b/webrtc/api/peerconnectioninterface.h
@@ -493,6 +493,25 @@
virtual const SessionDescriptionInterface* local_description() const = 0;
virtual const SessionDescriptionInterface* remote_description() const = 0;
+ // A "current" description the one currently negotiated from a complete
+ // offer/answer exchange.
+ virtual const SessionDescriptionInterface* current_local_description() const {
+ return nullptr;
+ }
+ virtual const SessionDescriptionInterface* current_remote_description()
+ const {
+ return nullptr;
+ }
+ // A "pending" description is one that's part of an incomplete offer/answer
+ // exchange (thus, either an offer or a pranswer). Once the offer/answer
+ // exchange is finished, the "pending" description will become "current".
+ virtual const SessionDescriptionInterface* pending_local_description() const {
+ return nullptr;
+ }
+ virtual const SessionDescriptionInterface* pending_remote_description()
+ const {
+ return nullptr;
+ }
// Create a new offer.
// The CreateSessionDescriptionObserver callback will be called when done.