Title: [288790] trunk/Source/WebCore
Revision
288790
Author
[email protected]
Date
2022-01-29 06:43:57 -0800 (Sat, 29 Jan 2022)

Log Message

[LibWebRTC] ifdef cleanups
https://bugs.webkit.org/show_bug.cgi?id=235858

Patch by Philippe Normand <[email protected]> on 2022-01-29
Reviewed by Youenn Fablet.

ENABLE(WEB_RTC) does not necessarily imply USE(LIBWEBRTC), so guard libwebrtc-specific files
with explicit USE(LIBWEBRTC) ifdefs.

* Modules/mediastream/STUNMessageParsing.cpp:
* Modules/mediastream/libwebrtc/LibWebRTCDtlsTransportBackend.h:
* Modules/mediastream/libwebrtc/LibWebRTCIceTransportBackend.h:
* Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h:
* platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.cpp:
* platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288789 => 288790)


--- trunk/Source/WebCore/ChangeLog	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/ChangeLog	2022-01-29 14:43:57 UTC (rev 288790)
@@ -1,3 +1,20 @@
+2022-01-29  Philippe Normand  <[email protected]>
+
+        [LibWebRTC] ifdef cleanups
+        https://bugs.webkit.org/show_bug.cgi?id=235858
+
+        Reviewed by Youenn Fablet.
+
+        ENABLE(WEB_RTC) does not necessarily imply USE(LIBWEBRTC), so guard libwebrtc-specific files
+        with explicit USE(LIBWEBRTC) ifdefs.
+
+        * Modules/mediastream/STUNMessageParsing.cpp:
+        * Modules/mediastream/libwebrtc/LibWebRTCDtlsTransportBackend.h:
+        * Modules/mediastream/libwebrtc/LibWebRTCIceTransportBackend.h:
+        * Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h:
+        * platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.cpp:
+        * platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.h:
+
 2022-01-29  Kimmo Kinnunen  <[email protected]>
 
         Capturing WebGL canvas through peer connection shows the image flipped

Modified: trunk/Source/WebCore/Modules/mediastream/STUNMessageParsing.cpp (288789 => 288790)


--- trunk/Source/WebCore/Modules/mediastream/STUNMessageParsing.cpp	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/Modules/mediastream/STUNMessageParsing.cpp	2022-01-29 14:43:57 UTC (rev 288790)
@@ -26,7 +26,7 @@
 #include "config.h"
 #include "STUNMessageParsing.h"
 
-#if ENABLE(WEB_RTC)
+#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
 
 #include <LibWebRTCMacros.h>
 #include <webrtc/rtc_base/byte_order.h>
@@ -122,4 +122,4 @@
 } // namespace WebRTC
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // ENABLE(WEB_RTC) && USE(LIBWEBRTC)

Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDtlsTransportBackend.h (288789 => 288790)


--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDtlsTransportBackend.h	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDtlsTransportBackend.h	2022-01-29 14:43:57 UTC (rev 288790)
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#if ENABLE(WEB_RTC)
+#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
 
 #include "LibWebRTCMacros.h"
 #include "RTCDtlsTransportBackend.h"
@@ -61,4 +61,4 @@
 
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // ENABLE(WEB_RTC) && USE(LIBWEBRTC)

Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCIceTransportBackend.h (288789 => 288790)


--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCIceTransportBackend.h	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCIceTransportBackend.h	2022-01-29 14:43:57 UTC (rev 288790)
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#if ENABLE(WEB_RTC)
+#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
 
 #include "LibWebRTCMacros.h"
 #include "RTCIceTransportBackend.h"
@@ -61,4 +61,4 @@
 
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // ENABLE(WEB_RTC) && USE(LIBWEBRTC)

Modified: trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h (288789 => 288790)


--- trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h	2022-01-29 14:43:57 UTC (rev 288790)
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#if ENABLE(WEB_RTC)
+#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
 
 #include "LibWebRTCMacros.h"
 #include "RTCSctpTransportBackend.h"
@@ -63,4 +63,4 @@
 
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // ENABLE(WEB_RTC) && USE(LIBWEBRTC)

Modified: trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.cpp (288789 => 288790)


--- trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.cpp	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.cpp	2022-01-29 14:43:57 UTC (rev 288790)
@@ -26,7 +26,7 @@
 #include "config.h"
 #include "LibWebRTCDTMFSenderBackend.h"
 
-#if ENABLE(WEB_RTC)
+#if USE(LIBWEBRTC)
 
 #include <wtf/MainThread.h>
 
@@ -94,4 +94,4 @@
 
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // USE(LIBWEBRTC)

Modified: trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.h (288789 => 288790)


--- trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.h	2022-01-29 11:49:46 UTC (rev 288789)
+++ trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCDTMFSenderBackend.h	2022-01-29 14:43:57 UTC (rev 288790)
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#if ENABLE(WEB_RTC)
+#if USE(LIBWEBRTC)
 
 #include "LibWebRTCMacros.h"
 #include "RTCDTMFSenderBackend.h"
@@ -64,4 +64,4 @@
 
 } // namespace WebCore
 
-#endif // ENABLE(WEB_RTC)
+#endif // USE(LIBWEBRTC)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to