Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h

Issue 2156063002: Preparation for new Promise-based RTCPeerConnection.getStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
index 42f09b2a5cc75a95b9e688eb944361c8d3a67853..13d4c277126ddcc9c37d19f5c3b389884f701a67 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
@@ -113,7 +113,8 @@ public:
void removeStream(MediaStream*, ExceptionState&);
- void getStats(ExecutionContext*, RTCStatsCallback* successCallback, MediaStreamTrack* selector);
+ ScriptPromise getStats(ScriptState*, RTCStatsCallback* successCallback, MediaStreamTrack* selector = nullptr);
+ ScriptPromise getStats(ScriptState*, MediaStreamTrack* selector = nullptr);
RTCDataChannel* createDataChannel(String label, const Dictionary& dataChannelDict, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698