Changeset 128924 in webkit


Ignore:
Timestamp:
Sep 18, 2012 1:07:18 PM (12 years ago)
Author:
tommyw@google.com
Message:

MediaStream API: Create a flag to enable PeerConnection00
https://bugs.webkit.org/show_bug.cgi?id=96989

Reviewed by Adam Barth.

Adding the functionality to separately enable/disable PeerConnection00.
For now it is enabled by default.

Source/WebCore:

Not testable, nor likely to cause issues.

  • bindings/generic/RuntimeEnabledFeatures.cpp:

(WebCore):

  • bindings/generic/RuntimeEnabledFeatures.h:

(WebCore::RuntimeEnabledFeatures::deprecatedPeerConnectionEnabled):
(WebCore::RuntimeEnabledFeatures::setDeprecatedPeerConnectionEnabled):
(WebCore::RuntimeEnabledFeatures::webkitPeerConnection00Enabled):
(RuntimeEnabledFeatures):

Source/WebKit/chromium:

  • public/WebRuntimeFeatures.h:

(WebRuntimeFeatures):

  • src/WebRuntimeFeatures.cpp:

(WebKit::WebRuntimeFeatures::enableDeprecatedPeerConnection):
(WebKit):
(WebKit::WebRuntimeFeatures::isDeprecatedPeerConnectionEnabled):

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128914 r128924  
     12012-09-18  Tommy Widenflycht  <tommyw@google.com>
     2
     3        MediaStream API: Create a flag to enable PeerConnection00
     4        https://bugs.webkit.org/show_bug.cgi?id=96989
     5
     6        Reviewed by Adam Barth.
     7
     8        Adding the functionality to separately enable/disable PeerConnection00.
     9        For now it is enabled by default.
     10
     11        Not testable, nor likely to cause issues.
     12
     13        * bindings/generic/RuntimeEnabledFeatures.cpp:
     14        (WebCore):
     15        * bindings/generic/RuntimeEnabledFeatures.h:
     16        (WebCore::RuntimeEnabledFeatures::deprecatedPeerConnectionEnabled):
     17        (WebCore::RuntimeEnabledFeatures::setDeprecatedPeerConnectionEnabled):
     18        (WebCore::RuntimeEnabledFeatures::webkitPeerConnection00Enabled):
     19        (RuntimeEnabledFeatures):
     20
    1212012-09-18  Bo Liu  <boliu@chromium.org>
    222
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp

    r128800 r128924  
    6565bool RuntimeEnabledFeatures::isMediaStreamEnabled = false;
    6666bool RuntimeEnabledFeatures::isPeerConnectionEnabled = true;
     67bool RuntimeEnabledFeatures::isDeprecatedPeerConnectionEnabled = true;
    6768#endif
    6869
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h

    r128850 r128924  
    186186    static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerConnectionEnabled; }
    187187    static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabled = isEnabled; }
    188     static bool webkitPeerConnection00Enabled() { return peerConnectionEnabled(); }
     188    static bool deprecatedPeerConnectionEnabled() { return isMediaStreamEnabled && isDeprecatedPeerConnectionEnabled; }
     189    static void setDeprecatedPeerConnectionEnabled(bool isEnabled) { isDeprecatedPeerConnectionEnabled = isEnabled; }
     190    static bool webkitPeerConnection00Enabled() { return deprecatedPeerConnectionEnabled(); }
    189191    static bool webkitRTCPeerConnectionEnabled() { return peerConnectionEnabled(); }
    190192#endif
     
    299301    static bool isMediaStreamEnabled;
    300302    static bool isPeerConnectionEnabled;
     303    static bool isDeprecatedPeerConnectionEnabled;
    301304#endif
    302305
  • trunk/Source/WebKit/chromium/ChangeLog

    r128903 r128924  
     12012-09-18  Tommy Widenflycht  <tommyw@google.com>
     2
     3        MediaStream API: Create a flag to enable PeerConnection00
     4        https://bugs.webkit.org/show_bug.cgi?id=96989
     5
     6        Reviewed by Adam Barth.
     7
     8        Adding the functionality to separately enable/disable PeerConnection00.
     9        For now it is enabled by default.
     10
     11        * public/WebRuntimeFeatures.h:
     12        (WebRuntimeFeatures):
     13        * src/WebRuntimeFeatures.cpp:
     14        (WebKit::WebRuntimeFeatures::enableDeprecatedPeerConnection):
     15        (WebKit):
     16        (WebKit::WebRuntimeFeatures::isDeprecatedPeerConnectionEnabled):
     17
    1182012-09-18  Iain Merrick  <husky@google.com>
    219
  • trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h

    r127674 r128924  
    113113    WEBKIT_EXPORT static void enablePeerConnection(bool);
    114114    WEBKIT_EXPORT static bool isPeerConnectionEnabled();
     115    WEBKIT_EXPORT static void enableDeprecatedPeerConnection(bool);
     116    WEBKIT_EXPORT static bool isDeprecatedPeerConnectionEnabled();
    115117
    116118    WEBKIT_EXPORT static void enableFullScreenAPI(bool);
  • trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

    r127674 r128924  
    369369}
    370370
     371void WebRuntimeFeatures::enableDeprecatedPeerConnection(bool enable)
     372{
     373#if ENABLE(MEDIA_STREAM)
     374    RuntimeEnabledFeatures::setDeprecatedPeerConnectionEnabled(enable);
     375#else
     376    UNUSED_PARAM(enable);
     377#endif
     378}
     379
     380bool WebRuntimeFeatures::isDeprecatedPeerConnectionEnabled()
     381{
     382#if ENABLE(MEDIA_STREAM)
     383    return RuntimeEnabledFeatures::deprecatedPeerConnectionEnabled();
     384#else
     385    return false;
     386#endif
     387}
     388
    371389void WebRuntimeFeatures::enableFullScreenAPI(bool enable)
    372390{
Note: See TracChangeset for help on using the changeset viewer.