Unreviewed, rolling out r226600 and r226603
[WebKit-https.git] / Source / WebCore / page / RuntimeEnabledFeatures.cpp
index 890c07b..def1188 100644 (file)
 #include "RuntimeEnabledFeatures.h"
 
 #include "MediaPlayer.h"
-#include "WebSocket.h"
+#include <wtf/NeverDestroyed.h>
 
 namespace WebCore {
 
 RuntimeEnabledFeatures::RuntimeEnabledFeatures()
 {
 #if ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)
-    m_isMediaStreamEnabled = false;
+    m_isMediaDevicesEnabled = false;
 #endif
 }
 
@@ -56,48 +56,6 @@ bool RuntimeEnabledFeatures::audioEnabled() const
 {
     return MediaPlayer::isAvailable();
 }
-
-bool RuntimeEnabledFeatures::htmlMediaElementEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::htmlAudioElementEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::htmlVideoElementEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::htmlSourceElementEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::mediaControllerEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::mediaErrorEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-
-bool RuntimeEnabledFeatures::timeRangesEnabled() const
-{
-    return MediaPlayer::isAvailable();
-}
-#endif
-
-#if ENABLE(WEB_SOCKETS)
-bool RuntimeEnabledFeatures::webSocketEnabled() const
-{
-    return WebSocket::isAvailable();
-}
 #endif
 
 } // namespace WebCore