| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea
derEnabled = isEnabled; } | 240 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea
derEnabled = isEnabled; } |
| 241 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled
; } | 241 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled
; } |
| 242 | 242 |
| 243 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } | 243 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } |
| 244 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } | 244 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } |
| 245 | 245 |
| 246 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } | 246 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } |
| 247 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } | 247 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } |
| 248 | 248 |
| 249 static void setAnimatedWebPEnabled(bool isEnabled) { isAnimatedWebPEnabled =
isEnabled; } |
| 250 static bool animatedWebPEnabled() { return isAnimatedWebPEnabled; } |
| 251 |
| 249 private: | 252 private: |
| 250 // Never instantiate. | 253 // Never instantiate. |
| 251 RuntimeEnabledFeatures() { } | 254 RuntimeEnabledFeatures() { } |
| 252 | 255 |
| 253 static bool isLocalStorageEnabled; | 256 static bool isLocalStorageEnabled; |
| 254 static bool isSessionStorageEnabled; | 257 static bool isSessionStorageEnabled; |
| 255 static bool isWebkitNotificationsEnabled; | 258 static bool isWebkitNotificationsEnabled; |
| 256 static bool isApplicationCacheEnabled; | 259 static bool isApplicationCacheEnabled; |
| 257 static bool isGeolocationEnabled; | 260 static bool isGeolocationEnabled; |
| 258 static bool isIndexedDBEnabled; | 261 static bool isIndexedDBEnabled; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 326 |
| 324 static bool areSeamlessIFramesEnabled; | 327 static bool areSeamlessIFramesEnabled; |
| 325 | 328 |
| 326 static bool isFontLoadEventsEnabled; | 329 static bool isFontLoadEventsEnabled; |
| 327 | 330 |
| 328 static bool isWebPInAcceptHeaderEnabled; | 331 static bool isWebPInAcceptHeaderEnabled; |
| 329 | 332 |
| 330 static bool isDirectoryUploadEnabled; | 333 static bool isDirectoryUploadEnabled; |
| 331 | 334 |
| 332 static bool isExperimentalWebSocketEnabled; | 335 static bool isExperimentalWebSocketEnabled; |
| 336 |
| 337 static bool isAnimatedWebPEnabled; |
| 333 }; | 338 }; |
| 334 | 339 |
| 335 } // namespace WebCore | 340 } // namespace WebCore |
| 336 | 341 |
| 337 #endif // RuntimeEnabledFeatures_h | 342 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |