| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "RuntimeEnabledFeatures.h" | 32 #include "RuntimeEnabledFeatures.h" |
| 33 | 33 |
| 34 #include "AsyncFileSystem.h" |
| 34 #include "DatabaseManager.h" | 35 #include "DatabaseManager.h" |
| 35 #include "MediaPlayer.h" | 36 #include "MediaPlayer.h" |
| 36 #include "SharedWorkerRepository.h" | 37 #include "SharedWorkerRepository.h" |
| 37 #include "WebSocket.h" | 38 #include "WebSocket.h" |
| 38 | 39 |
| 39 #if ENABLE(FILE_SYSTEM) | |
| 40 #include "AsyncFileSystem.h" | |
| 41 #endif | |
| 42 | |
| 43 namespace WebCore { | 40 namespace WebCore { |
| 44 | 41 |
| 45 bool RuntimeEnabledFeatures::isLocalStorageEnabled = true; | 42 bool RuntimeEnabledFeatures::isLocalStorageEnabled = true; |
| 46 bool RuntimeEnabledFeatures::isSessionStorageEnabled = true; | 43 bool RuntimeEnabledFeatures::isSessionStorageEnabled = true; |
| 47 bool RuntimeEnabledFeatures::isWebkitNotificationsEnabled = false; | 44 bool RuntimeEnabledFeatures::isWebkitNotificationsEnabled = false; |
| 48 bool RuntimeEnabledFeatures::isApplicationCacheEnabled = true; | 45 bool RuntimeEnabledFeatures::isApplicationCacheEnabled = true; |
| 49 bool RuntimeEnabledFeatures::isDataTransferItemsEnabled = true; | 46 bool RuntimeEnabledFeatures::isDataTransferItemsEnabled = true; |
| 50 bool RuntimeEnabledFeatures::isGeolocationEnabled = true; | 47 bool RuntimeEnabledFeatures::isGeolocationEnabled = true; |
| 51 bool RuntimeEnabledFeatures::isIndexedDBEnabled = false; | 48 bool RuntimeEnabledFeatures::isIndexedDBEnabled = false; |
| 52 bool RuntimeEnabledFeatures::isWebAudioEnabled = false; | 49 bool RuntimeEnabledFeatures::isWebAudioEnabled = false; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 66 | 63 |
| 67 #if ENABLE(MEDIA_STREAM) | 64 #if ENABLE(MEDIA_STREAM) |
| 68 bool RuntimeEnabledFeatures::isMediaStreamEnabled = true; | 65 bool RuntimeEnabledFeatures::isMediaStreamEnabled = true; |
| 69 bool RuntimeEnabledFeatures::isPeerConnectionEnabled = true; | 66 bool RuntimeEnabledFeatures::isPeerConnectionEnabled = true; |
| 70 #endif | 67 #endif |
| 71 | 68 |
| 72 #if ENABLE(GAMEPAD) | 69 #if ENABLE(GAMEPAD) |
| 73 bool RuntimeEnabledFeatures::isGamepadEnabled = false; | 70 bool RuntimeEnabledFeatures::isGamepadEnabled = false; |
| 74 #endif | 71 #endif |
| 75 | 72 |
| 76 #if ENABLE(FILE_SYSTEM) | |
| 77 bool RuntimeEnabledFeatures::isFileSystemEnabled = false; | 73 bool RuntimeEnabledFeatures::isFileSystemEnabled = false; |
| 78 | 74 |
| 79 bool RuntimeEnabledFeatures::fileSystemEnabled() | 75 bool RuntimeEnabledFeatures::fileSystemEnabled() |
| 80 { | 76 { |
| 81 return isFileSystemEnabled && AsyncFileSystem::isAvailable(); | 77 return isFileSystemEnabled && AsyncFileSystem::isAvailable(); |
| 82 } | 78 } |
| 83 #endif | |
| 84 | 79 |
| 85 #if ENABLE(JAVASCRIPT_I18N_API) | 80 #if ENABLE(JAVASCRIPT_I18N_API) |
| 86 bool RuntimeEnabledFeatures::isJavaScriptI18NAPIEnabled = false; | 81 bool RuntimeEnabledFeatures::isJavaScriptI18NAPIEnabled = false; |
| 87 | 82 |
| 88 bool RuntimeEnabledFeatures::javaScriptI18NAPIEnabled() | 83 bool RuntimeEnabledFeatures::javaScriptI18NAPIEnabled() |
| 89 { | 84 { |
| 90 return isJavaScriptI18NAPIEnabled; | 85 return isJavaScriptI18NAPIEnabled; |
| 91 } | 86 } |
| 92 #endif | 87 #endif |
| 93 | 88 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 222 |
| 228 bool RuntimeEnabledFeatures::areExperimentalContentSecurityPolicyFeaturesEnabled
= false; | 223 bool RuntimeEnabledFeatures::areExperimentalContentSecurityPolicyFeaturesEnabled
= false; |
| 229 | 224 |
| 230 bool RuntimeEnabledFeatures::areSeamlessIFramesEnabled = false; | 225 bool RuntimeEnabledFeatures::areSeamlessIFramesEnabled = false; |
| 231 | 226 |
| 232 #if ENABLE(FONT_LOAD_EVENTS) | 227 #if ENABLE(FONT_LOAD_EVENTS) |
| 233 bool RuntimeEnabledFeatures::isFontLoadEventsEnabled = false; | 228 bool RuntimeEnabledFeatures::isFontLoadEventsEnabled = false; |
| 234 #endif | 229 #endif |
| 235 | 230 |
| 236 } // namespace WebCore | 231 } // namespace WebCore |
| OLD | NEW |