Diff
Modified: trunk/Source/WebCore/ChangeLog (250077 => 250078)
--- trunk/Source/WebCore/ChangeLog 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebCore/ChangeLog 2019-09-19 03:27:00 UTC (rev 250078)
@@ -1,3 +1,18 @@
+2019-09-18 Chris Dumez <[email protected]>
+
+ LibWebRTCProvider does not need sessionIDs anymore
+ https://bugs.webkit.org/show_bug.cgi?id=201959
+
+ Reviewed by Geoffrey Garen.
+
+ LibWebRTCProvider does not need sessionIDs anymore, now that we have a single session per WebProcess.
+
+ * Modules/mediastream/PeerConnectionBackend.cpp:
+ (WebCore::PeerConnectionBackend::registerMDNSName):
+ * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
+ (WebCore::LibWebRTCMediaEndpoint::setConfiguration):
+ * platform/mediastream/libwebrtc/LibWebRTCProvider.h:
+
2019-09-18 Zalan Bujtas <[email protected]>
[LFC] FormattingContext::Geometry/MarginCollapse/Quirk classes should not need to access non-const Display::Box
Modified: trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp (250077 => 250078)
--- trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp 2019-09-19 03:27:00 UTC (rev 250078)
@@ -469,7 +469,7 @@
++m_waitingForMDNSRegistration;
auto& document = downcast<Document>(*m_peerConnection.scriptExecutionContext());
auto& provider = document.page()->libWebRTCProvider();
- provider.registerMDNSName(document.sessionID(), document.identifier().toUInt64(), ipAddress, [peerConnection = makeRef(m_peerConnection), this, ipAddress] (LibWebRTCProvider::MDNSNameOrError&& result) {
+ provider.registerMDNSName(document.identifier().toUInt64(), ipAddress, [peerConnection = makeRef(m_peerConnection), this, ipAddress] (LibWebRTCProvider::MDNSNameOrError&& result) {
if (peerConnection->isStopped())
return;
Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp (250077 => 250078)
--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp 2019-09-19 03:27:00 UTC (rev 250078)
@@ -88,7 +88,7 @@
if (!m_backend) {
if (!m_rtcSocketFactory) {
auto& document = downcast<Document>(*m_peerConnectionBackend.connection().scriptExecutionContext());
- m_rtcSocketFactory = client.createSocketFactory(document.sessionID(), document.userAgent(document.url()));
+ m_rtcSocketFactory = client.createSocketFactory(document.userAgent(document.url()));
}
m_backend = client.createPeerConnection(*this, m_rtcSocketFactory.get(), WTFMove(configuration));
return !!m_backend;
Modified: trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.h (250077 => 250078)
--- trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.h 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.h 2019-09-19 03:27:00 UTC (rev 250078)
@@ -84,7 +84,7 @@
UNUSED_PARAM(documentIdentifier);
}
- virtual void registerMDNSName(PAL::SessionID, uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&& callback)
+ virtual void registerMDNSName(uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&& callback)
{
UNUSED_PARAM(documentIdentifier);
UNUSED_PARAM(ipAddress);
@@ -120,7 +120,7 @@
void setEnableWebRTCEncryption(bool);
void setUseDTLS10(bool);
- virtual std::unique_ptr<rtc::PacketSocketFactory> createSocketFactory(PAL::SessionID, String&& /* userAgent */) { return nullptr; }
+ virtual std::unique_ptr<rtc::PacketSocketFactory> createSocketFactory(String&& /* userAgent */) { return nullptr; }
protected:
LibWebRTCProvider() = default;
Modified: trunk/Source/WebKit/ChangeLog (250077 => 250078)
--- trunk/Source/WebKit/ChangeLog 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebKit/ChangeLog 2019-09-19 03:27:00 UTC (rev 250078)
@@ -1,3 +1,17 @@
+2019-09-18 Chris Dumez <[email protected]>
+
+ LibWebRTCProvider does not need sessionIDs anymore
+ https://bugs.webkit.org/show_bug.cgi?id=201959
+
+ Reviewed by Geoffrey Garen.
+
+ LibWebRTCProvider does not need sessionIDs anymore, now that we have a single session per WebProcess.
+
+ * WebProcess/Network/webrtc/LibWebRTCProvider.cpp:
+ (WebKit::LibWebRTCProvider::registerMDNSName):
+ (WebKit::LibWebRTCProvider::createSocketFactory):
+ * WebProcess/Network/webrtc/LibWebRTCProvider.h:
+
2019-09-18 Yury Semikhatsky <[email protected]>
[GTK] Compilation errors when GL is disabled
Modified: trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.cpp (250077 => 250078)
--- trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.cpp 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.cpp 2019-09-19 03:27:00 UTC (rev 250078)
@@ -60,7 +60,7 @@
WebProcess::singleton().libWebRTCNetwork().mdnsRegister().unregisterMDNSNames(documentIdentifier);
}
-void LibWebRTCProvider::registerMDNSName(PAL::SessionID, uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&& callback)
+void LibWebRTCProvider::registerMDNSName(uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&& callback)
{
WebProcess::singleton().libWebRTCNetwork().mdnsRegister().registerMDNSName(documentIdentifier, ipAddress, WTFMove(callback));
}
@@ -100,7 +100,7 @@
String m_userAgent;
};
-std::unique_ptr<rtc::PacketSocketFactory> LibWebRTCProvider::createSocketFactory(PAL::SessionID, String&& userAgent)
+std::unique_ptr<rtc::PacketSocketFactory> LibWebRTCProvider::createSocketFactory(String&& userAgent)
{
return makeUnique<RTCSocketFactory>(WTFMove(userAgent));
}
Modified: trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.h (250077 => 250078)
--- trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.h 2019-09-19 02:34:49 UTC (rev 250077)
+++ trunk/Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.h 2019-09-19 03:27:00 UTC (rev 250078)
@@ -50,12 +50,12 @@
LibWebRTCProvider() { m_useNetworkThreadWithSocketServer = false; }
private:
- std::unique_ptr<rtc::PacketSocketFactory> createSocketFactory(PAL::SessionID, String&& /* userAgent */) final;
+ std::unique_ptr<rtc::PacketSocketFactory> createSocketFactory(String&& /* userAgent */) final;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> createPeerConnection(webrtc::PeerConnectionObserver&, rtc::PacketSocketFactory*, webrtc::PeerConnectionInterface::RTCConfiguration&&) final;
void unregisterMDNSNames(uint64_t documentIdentifier) final;
- void registerMDNSName(PAL::SessionID, uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&&) final;
+ void registerMDNSName(uint64_t documentIdentifier, const String& ipAddress, CompletionHandler<void(MDNSNameOrError&&)>&&) final;
void disableNonLocalhostConnections() final;
};
#else