diff options
Diffstat (limited to 'WebCore/bindings/generic')
-rw-r--r-- | WebCore/bindings/generic/RuntimeEnabledFeatures.cpp | 8 | ||||
-rw-r--r-- | WebCore/bindings/generic/RuntimeEnabledFeatures.h | 20 |
2 files changed, 28 insertions, 0 deletions
diff --git a/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp b/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp index 94e984f..a15fd6d 100644 --- a/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp +++ b/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp @@ -51,6 +51,14 @@ bool RuntimeEnabledFeatures::isDeviceMotionEnabled = true; bool RuntimeEnabledFeatures::isDeviceOrientationEnabled = true; bool RuntimeEnabledFeatures::isSpeechInputEnabled = true; +#if ENABLE(XHR_RESPONSE_BLOB) +bool RuntimeEnabledFeatures::isXHRResponseBlobEnabled = false; +#endif + +#if ENABLE(FILE_SYSTEM) +bool RuntimeEnabledFeatures::isFileSystemEnabled = false; +#endif + #if ENABLE(VIDEO) bool RuntimeEnabledFeatures::audioEnabled() diff --git a/WebCore/bindings/generic/RuntimeEnabledFeatures.h b/WebCore/bindings/generic/RuntimeEnabledFeatures.h index fd7308e..fb43f3f 100644 --- a/WebCore/bindings/generic/RuntimeEnabledFeatures.h +++ b/WebCore/bindings/generic/RuntimeEnabledFeatures.h @@ -128,6 +128,19 @@ public: static bool speechInputEnabled() { return isSpeechInputEnabled; } static bool speechEnabled() { return isSpeechInputEnabled; } +#if ENABLE(XHR_RESPONSE_BLOB) + static bool xhrResponseBlobEnabled() { return isXHRResponseBlobEnabled; } + static void setXHRResponseBlobEnabled(bool isEnabled) { isXHRResponseBlobEnabled = isEnabled; } + static bool responseBlobEnabled() { return isXHRResponseBlobEnabled; } + static bool asBlobEnabled() { return isXHRResponseBlobEnabled; } +#endif + +#if ENABLE(FILE_SYSTEM) + static bool fileSystemEnabled() { return isFileSystemEnabled; } + static void setFileSystemEnabled(bool isEnabled) { isFileSystemEnabled = isEnabled; } + static bool requestFileSystemEnabled() { return isFileSystemEnabled; } +#endif + private: // Never instantiate. RuntimeEnabledFeatures() { } @@ -144,6 +157,13 @@ private: static bool isDeviceMotionEnabled; static bool isDeviceOrientationEnabled; static bool isSpeechInputEnabled; +#if ENABLE(XHR_RESPONSE_BLOB) + static bool isXHRResponseBlobEnabled; +#endif + +#if ENABLE(FILE_SYSTEM) + static bool isFileSystemEnabled; +#endif }; } // namespace WebCore |