Wrap legacy WebRTC API in runtime flag
[WebKit-https.git] / Source / WebKit / mac / WebView / WebPreferencesPrivate.h
1 /*
2  * Copyright (C) 2005-2017 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1.  Redistributions of source code must retain the above copyright
9  *     notice, this list of conditions and the following disclaimer. 
10  * 2.  Redistributions in binary form must reproduce the above copyright
11  *     notice, this list of conditions and the following disclaimer in the
12  *     documentation and/or other materials provided with the distribution. 
13  * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
14  *     its contributors may be used to endorse or promote products derived
15  *     from this software without specific prior written permission. 
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 #import <WebKitLegacy/WebPreferences.h>
30
31 #if !TARGET_OS_IPHONE
32 #import <Quartz/Quartz.h>
33 #endif
34
35 typedef enum {
36     WebKitEditableLinkDefaultBehavior,
37     WebKitEditableLinkAlwaysLive,
38     WebKitEditableLinkOnlyLiveWithShiftKey,
39     WebKitEditableLinkLiveWhenNotFocused,
40     WebKitEditableLinkNeverLive
41 } WebKitEditableLinkBehavior;
42
43 typedef enum {
44     WebTextDirectionSubmenuNeverIncluded,
45     WebTextDirectionSubmenuAutomaticallyIncluded,
46     WebTextDirectionSubmenuAlwaysIncluded
47 } WebTextDirectionSubmenuInclusionBehavior;
48
49 typedef enum {
50     WebAllowAllStorage = 0,
51     WebBlockThirdPartyStorage,
52     WebBlockAllStorage
53 } WebStorageBlockingPolicy;
54
55 typedef enum {
56     WebKitJavaScriptRuntimeFlagsAllEnabled = 0
57 } WebKitJavaScriptRuntimeFlags;
58
59 extern NSString *WebPreferencesChangedNotification;
60 extern NSString *WebPreferencesRemovedNotification;
61 extern NSString *WebPreferencesChangedInternalNotification;
62 extern NSString *WebPreferencesCacheModelChangedInternalNotification;
63
64 @interface WebPreferences (WebPrivate)
65
66 // Preferences that might be public in a future release
67
68 - (BOOL)isDNSPrefetchingEnabled;
69 - (void)setDNSPrefetchingEnabled:(BOOL)flag;
70
71 - (BOOL)developerExtrasEnabled;
72 - (void)setDeveloperExtrasEnabled:(BOOL)flag;
73
74 - (WebKitJavaScriptRuntimeFlags)javaScriptRuntimeFlags;
75 - (void)setJavaScriptRuntimeFlags:(WebKitJavaScriptRuntimeFlags)flags;
76
77 - (BOOL)authorAndUserStylesEnabled;
78 - (void)setAuthorAndUserStylesEnabled:(BOOL)flag;
79
80 - (BOOL)applicationChromeModeEnabled;
81 - (void)setApplicationChromeModeEnabled:(BOOL)flag;
82
83 - (BOOL)usesEncodingDetector;
84 - (void)setUsesEncodingDetector:(BOOL)flag;
85
86 #if !TARGET_OS_IPHONE
87 - (BOOL)respectStandardStyleKeyEquivalents;
88 - (void)setRespectStandardStyleKeyEquivalents:(BOOL)flag;
89
90 - (BOOL)showsURLsInToolTips;
91 - (void)setShowsURLsInToolTips:(BOOL)flag;
92
93 - (BOOL)showsToolTipOverTruncatedText;
94 - (void)setShowsToolTipOverTruncatedText:(BOOL)flag;
95
96 - (BOOL)textAreasAreResizable;
97 - (void)setTextAreasAreResizable:(BOOL)flag;
98
99 - (PDFDisplayMode)PDFDisplayMode;
100 - (void)setPDFDisplayMode:(PDFDisplayMode)mode;
101 #endif
102
103 - (BOOL)shrinksStandaloneImagesToFit;
104 - (void)setShrinksStandaloneImagesToFit:(BOOL)flag;
105
106 - (BOOL)automaticallyDetectsCacheModel;
107 - (void)setAutomaticallyDetectsCacheModel:(BOOL)automaticallyDetectsCacheModel;
108
109 - (BOOL)domTimersThrottlingEnabled;
110 - (void)setDOMTimersThrottlingEnabled:(BOOL)domTimersThrottlingEnabled;
111
112 - (BOOL)webArchiveDebugModeEnabled;
113 - (void)setWebArchiveDebugModeEnabled:(BOOL)webArchiveDebugModeEnabled;
114
115 - (BOOL)localFileContentSniffingEnabled;
116 - (void)setLocalFileContentSniffingEnabled:(BOOL)localFileContentSniffingEnabled;
117
118 - (BOOL)offlineWebApplicationCacheEnabled;
119 - (void)setOfflineWebApplicationCacheEnabled:(BOOL)offlineWebApplicationCacheEnabled;
120
121 - (BOOL)databasesEnabled;
122 - (void)setDatabasesEnabled:(BOOL)databasesEnabled;
123
124 #if TARGET_OS_IPHONE
125 - (BOOL)storageTrackerEnabled;
126 - (void)setStorageTrackerEnabled:(BOOL)storageTrackerEnabled;
127 #endif
128
129 - (BOOL)localStorageEnabled;
130 - (void)setLocalStorageEnabled:(BOOL)localStorageEnabled;
131
132 - (BOOL)isWebSecurityEnabled;
133 - (void)setWebSecurityEnabled:(BOOL)flag;
134
135 - (BOOL)allowUniversalAccessFromFileURLs;
136 - (void)setAllowUniversalAccessFromFileURLs:(BOOL)flag;
137
138 - (BOOL)allowFileAccessFromFileURLs;
139 - (void)setAllowFileAccessFromFileURLs:(BOOL)flag;
140
141 - (BOOL)needsStorageAccessFromFileURLsQuirk;
142 - (void)setNeedsStorageAccessFromFileURLsQuirk:(BOOL)flag;
143
144 - (BOOL)zoomsTextOnly;
145 - (void)setZoomsTextOnly:(BOOL)zoomsTextOnly;
146
147 - (BOOL)javaScriptCanAccessClipboard;
148 - (void)setJavaScriptCanAccessClipboard:(BOOL)flag;
149
150 - (BOOL)isXSSAuditorEnabled;
151 - (void)setXSSAuditorEnabled:(BOOL)flag;
152
153 - (BOOL)experimentalNotificationsEnabled;
154 - (void)setExperimentalNotificationsEnabled:(BOOL)notificationsEnabled;
155
156 - (BOOL)isFrameFlatteningEnabled;
157 - (void)setFrameFlatteningEnabled:(BOOL)flag;
158
159 - (BOOL)isSpatialNavigationEnabled;
160 - (void)setSpatialNavigationEnabled:(BOOL)flag;
161
162 - (void)setSubtleCryptoEnabled:(BOOL)flag;
163 - (BOOL)subtleCryptoEnabled;
164
165 - (void)setMediaStreamEnabled:(BOOL)flag;
166 - (BOOL)mediaStreamEnabled;
167
168 - (void)setPeerConnectionEnabled:(BOOL)flag;
169 - (BOOL)peerConnectionEnabled;
170
171 - (void)setWebRTCLegacyAPIEnabled:(BOOL)flag;
172 - (BOOL)webRTCLegacyAPIEnabled;
173
174 #if !TARGET_OS_IPHONE
175 // zero means do AutoScale
176 - (float)PDFScaleFactor;
177 - (void)setPDFScaleFactor:(float)scale;
178 #endif
179
180 - (int64_t)applicationCacheTotalQuota;
181 - (void)setApplicationCacheTotalQuota:(int64_t)quota;
182
183 - (int64_t)applicationCacheDefaultOriginQuota;
184 - (void)setApplicationCacheDefaultOriginQuota:(int64_t)quota;
185
186 - (WebKitEditableLinkBehavior)editableLinkBehavior;
187 - (void)setEditableLinkBehavior:(WebKitEditableLinkBehavior)behavior;
188
189 - (WebTextDirectionSubmenuInclusionBehavior)textDirectionSubmenuInclusionBehavior;
190 - (void)setTextDirectionSubmenuInclusionBehavior:(WebTextDirectionSubmenuInclusionBehavior)behavior;
191
192 // Used to set preference specified in the test via LayoutTestController.overridePreference(..).
193 // For use with DumpRenderTree only.
194 - (void)_setPreferenceForTestWithValue:(NSString *)value forKey:(NSString *)key;
195
196 // If site-specific spoofing is enabled, some pages that do inappropriate user-agent string checks will be
197 // passed a nonstandard user-agent string to get them to work correctly. This method might be removed in
198 // the future when there's no more need for it.
199 - (BOOL)_useSiteSpecificSpoofing;
200 - (void)_setUseSiteSpecificSpoofing:(BOOL)newValue;
201
202 // WARNING: Allowing paste through the DOM API opens a security hole. We only use it for testing purposes.
203 - (BOOL)isDOMPasteAllowed;
204 - (void)setDOMPasteAllowed:(BOOL)DOMPasteAllowed;
205
206 - (NSString *)_ftpDirectoryTemplatePath;
207 - (void)_setFTPDirectoryTemplatePath:(NSString *)path;
208
209 - (void)_setForceFTPDirectoryListings:(BOOL)force;
210 - (BOOL)_forceFTPDirectoryListings;
211
212 - (NSString *)_localStorageDatabasePath;
213 - (void)_setLocalStorageDatabasePath:(NSString *)path;
214
215 - (BOOL)acceleratedDrawingEnabled;
216 - (void)setAcceleratedDrawingEnabled:(BOOL)enabled;
217
218 - (BOOL)displayListDrawingEnabled;
219 - (void)setDisplayListDrawingEnabled:(BOOL)enabled;
220
221 - (BOOL)resourceLoadStatisticsEnabled;
222 - (void)setResourceLoadStatisticsEnabled:(BOOL)enabled;
223
224 - (BOOL)canvasUsesAcceleratedDrawing;
225 - (void)setCanvasUsesAcceleratedDrawing:(BOOL)enabled;
226
227 - (BOOL)acceleratedCompositingEnabled;
228 - (void)setAcceleratedCompositingEnabled:(BOOL)enabled;
229
230 - (BOOL)subpixelAntialiasedLayerTextEnabled;
231 - (void)setSubpixelAntialiasedLayerTextEnabled:(BOOL)enabled;
232
233 - (BOOL)showDebugBorders;
234 - (void)setShowDebugBorders:(BOOL)show;
235
236 - (BOOL)simpleLineLayoutEnabled;
237 - (void)setSimpleLineLayoutEnabled:(BOOL)enabled;
238
239 - (BOOL)simpleLineLayoutDebugBordersEnabled;
240 - (void)setSimpleLineLayoutDebugBordersEnabled:(BOOL)enabled;
241
242 - (BOOL)showRepaintCounter;
243 - (void)setShowRepaintCounter:(BOOL)show;
244
245 - (BOOL)webAudioEnabled;
246 - (void)setWebAudioEnabled:(BOOL)enabled;
247
248 - (BOOL)subpixelCSSOMElementMetricsEnabled;
249 - (void)setSubpixelCSSOMElementMetricsEnabled:(BOOL)enabled;
250
251 - (BOOL)webGLEnabled;
252 - (void)setWebGLEnabled:(BOOL)enabled;
253
254 - (BOOL)webGL2Enabled;
255 - (void)setWebGL2Enabled:(BOOL)enabled;
256
257 - (BOOL)forceSoftwareWebGLRendering;
258 - (void)setForceSoftwareWebGLRendering:(BOOL)forced;
259
260 - (BOOL)forceLowPowerGPUForWebGL;
261 - (void)setForceWebGLUsesLowPower:(BOOL)forceLowPower;
262
263 - (BOOL)webGPUEnabled;
264 - (void)setWebGPUEnabled:(BOOL)enabled;
265
266 - (BOOL)accelerated2dCanvasEnabled;
267 - (void)setAccelerated2dCanvasEnabled:(BOOL)enabled;
268
269 - (BOOL)paginateDuringLayoutEnabled;
270 - (void)setPaginateDuringLayoutEnabled:(BOOL)flag;
271
272 - (BOOL)hyperlinkAuditingEnabled;
273 - (void)setHyperlinkAuditingEnabled:(BOOL)enabled;
274
275 // Deprecated. Use -setVideoPlaybackRequiresUserGesture and -setAudioPlaybackRequiresUserGesture instead.
276 - (void)setMediaPlaybackRequiresUserGesture:(BOOL)flag;
277 // Deprecated. Use -videoPlaybackRequiresUserGesture and -audioPlaybackRequiresUserGesture instead.
278 - (BOOL)mediaPlaybackRequiresUserGesture;
279
280 - (void)setVideoPlaybackRequiresUserGesture:(BOOL)flag;
281 - (BOOL)videoPlaybackRequiresUserGesture;
282
283 - (void)setAudioPlaybackRequiresUserGesture:(BOOL)flag;
284 - (BOOL)audioPlaybackRequiresUserGesture;
285
286 - (void)setOverrideUserGestureRequirementForMainContent:(BOOL)flag;
287 - (BOOL)overrideUserGestureRequirementForMainContent;
288
289 - (void)setMediaPlaybackAllowsInline:(BOOL)flag;
290 - (BOOL)mediaPlaybackAllowsInline;
291
292 - (void)setInlineMediaPlaybackRequiresPlaysInlineAttribute:(BOOL)flag;
293 - (BOOL)inlineMediaPlaybackRequiresPlaysInlineAttribute;
294
295 - (void)setInvisibleAutoplayNotPermitted:(BOOL)flag;
296 - (BOOL)invisibleAutoplayNotPermitted;
297
298 - (void)setMediaControlsScaleWithPageZoom:(BOOL)flag;
299 - (BOOL)mediaControlsScaleWithPageZoom;
300
301 - (void)setAllowsAlternateFullscreen:(BOOL)flag;
302 - (BOOL)allowsAlternateFullscreen;
303
304 - (void)setAllowsPictureInPictureMediaPlayback:(BOOL)flag;
305 - (BOOL)allowsPictureInPictureMediaPlayback;
306
307 - (NSString *)pictographFontFamily;
308 - (void)setPictographFontFamily:(NSString *)family;
309
310 - (BOOL)pageCacheSupportsPlugins;
311 - (void)setPageCacheSupportsPlugins:(BOOL)flag;
312
313 // This is a global setting.
314 - (BOOL)mockScrollbarsEnabled;
315 - (void)setMockScrollbarsEnabled:(BOOL)flag;
316
317 #if TARGET_OS_IPHONE
318 // This is a global setting.
319 - (unsigned)audioSessionCategoryOverride;
320 - (void)setAudioSessionCategoryOverride:(unsigned)override;
321
322 - (BOOL)avKitEnabled;
323 - (void)setAVKitEnabled:(bool)flag;
324
325 // WARNING: this affect network performance. This must not be enabled for production use.
326 // Enabling this makes WebCore reports the network data usage.
327 // This is a global setting.
328 - (void)setNetworkDataUsageTrackingEnabled:(bool)trackingEnabled;
329 - (BOOL)networkDataUsageTrackingEnabled;
330
331 - (void)setNetworkInterfaceName:(NSString *)name;
332 - (NSString *)networkInterfaceName;
333
334 - (void)_setMinimumZoomFontSize:(float)size;
335 - (float)_minimumZoomFontSize;
336
337 // Deprecated. Has no effect.
338 - (void)setDiskImageCacheEnabled:(BOOL)enabled;
339
340 - (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
341 - (BOOL)mediaPlaybackAllowsAirPlay;
342 #endif
343
344 - (void)_setTextAutosizingEnabled:(BOOL)enabled;
345 - (BOOL)_textAutosizingEnabled;
346
347 - (BOOL)isInheritURIQueryComponentEnabled;
348 - (void)setEnableInheritURIQueryComponent:(BOOL)flag;
349
350 // Other private methods
351 #if TARGET_OS_IPHONE
352 - (BOOL)_standalone;
353 - (void)_setStandalone:(BOOL)flag;
354 - (void)_setTelephoneNumberParsingEnabled:(BOOL)flag;
355 - (BOOL)_telephoneNumberParsingEnabled;
356 - (void)_setAllowMultiElementImplicitFormSubmission:(BOOL)flag;
357 - (BOOL)_allowMultiElementImplicitFormSubmission;
358 - (void)_setAlwaysRequestGeolocationPermission:(BOOL)flag;
359 - (BOOL)_alwaysRequestGeolocationPermission;
360 - (void)_setAlwaysUseAcceleratedOverflowScroll:(BOOL)flag;
361 - (BOOL)_alwaysUseAcceleratedOverflowScroll;
362 - (void)_setLayoutInterval:(int)milliseconds;
363 - (int)_layoutInterval; // Milliseonds.
364 - (void)_setMaxParseDuration:(float)d;
365 - (float)_maxParseDuration;
366 - (void)_setInterpolationQuality:(int)quality;
367 - (int)_interpolationQuality;
368 - (BOOL)_allowPasswordEcho;
369 - (float)_passwordEchoDuration;
370 #endif
371 - (void)_postPreferencesChangedNotification;
372 - (void)_postPreferencesChangedAPINotification;
373 + (WebPreferences *)_getInstanceForIdentifier:(NSString *)identifier;
374 + (void)_setInstance:(WebPreferences *)instance forIdentifier:(NSString *)identifier;
375 + (void)_removeReferenceForIdentifier:(NSString *)identifier;
376 - (NSTimeInterval)_backForwardCacheExpirationInterval;
377 + (CFStringEncoding)_systemCFStringEncoding;
378 + (void)_setInitialDefaultTextEncodingToSystemEncoding;
379 + (void)_setIBCreatorID:(NSString *)string;
380
381 // For DumpRenderTree use only.
382 + (void)_switchNetworkLoaderToNewTestingSession;
383 + (void)_setCurrentNetworkLoaderSessionCookieAcceptPolicy:(NSHTTPCookieAcceptPolicy)cookieAcceptPolicy;
384 + (void)_clearNetworkLoaderSession;
385
386 + (void)setWebKitLinkTimeVersion:(int)version;
387
388 // For WebView's use only.
389 - (void)willAddToWebView;
390 - (void)didRemoveFromWebView;
391
392 // Full screen support is dependent on WebCore/WebKit being
393 // compiled with ENABLE_FULLSCREEN_API. 
394 - (void)setFullScreenEnabled:(BOOL)flag;
395 - (BOOL)fullScreenEnabled;
396
397 - (void)setAsynchronousSpellCheckingEnabled:(BOOL)flag;
398 - (BOOL)asynchronousSpellCheckingEnabled;
399
400 - (void)setUsePreHTML5ParserQuirks:(BOOL)flag;
401 - (BOOL)usePreHTML5ParserQuirks;
402
403 - (void)setLoadsSiteIconsIgnoringImageLoadingPreference: (BOOL)flag;
404 - (BOOL)loadsSiteIconsIgnoringImageLoadingPreference;
405
406 // AVFoundation support is dependent on WebCore/WebKit being
407 // compiled with USE_AVFOUNDATION.
408 - (void)setAVFoundationEnabled:(BOOL)flag;
409 - (BOOL)isAVFoundationEnabled;
410
411 - (void)setAVFoundationNSURLSessionEnabled:(BOOL)flag;
412 - (BOOL)isAVFoundationNSURLSessionEnabled;
413
414 - (void)setQTKitEnabled:(BOOL)flag;
415 - (BOOL)isQTKitEnabled;
416
417 // Deprecated, has no effect.
418 - (void)setVideoPluginProxyEnabled:(BOOL)flag;
419 - (BOOL)isVideoPluginProxyEnabled;
420
421 // WebSocket support depends on ENABLE(WEB_SOCKETS).
422 - (void)setHixie76WebSocketProtocolEnabled:(BOOL)flag;
423 - (BOOL)isHixie76WebSocketProtocolEnabled;
424
425 #if TARGET_OS_IPHONE
426 - (void)_invalidateCachedPreferences;
427 - (void)_synchronizeWebStoragePolicyWithCookiePolicy;
428 #endif
429
430 - (void)setBackspaceKeyNavigationEnabled:(BOOL)flag;
431 - (BOOL)backspaceKeyNavigationEnabled;
432
433 - (void)setWantsBalancedSetDefersLoadingBehavior:(BOOL)flag;
434 - (BOOL)wantsBalancedSetDefersLoadingBehavior;
435
436 - (void)setShouldDisplaySubtitles:(BOOL)flag;
437 - (BOOL)shouldDisplaySubtitles;
438
439 - (void)setShouldDisplayCaptions:(BOOL)flag;
440 - (BOOL)shouldDisplayCaptions;
441
442 - (void)setShouldDisplayTextDescriptions:(BOOL)flag;
443 - (BOOL)shouldDisplayTextDescriptions;
444
445 - (void)setNotificationsEnabled:(BOOL)flag;
446 - (BOOL)notificationsEnabled;
447
448 - (void)setShouldRespectImageOrientation:(BOOL)flag;
449 - (BOOL)shouldRespectImageOrientation;
450
451 - (BOOL)requestAnimationFrameEnabled;
452 - (void)setRequestAnimationFrameEnabled:(BOOL)enabled;
453
454 - (void)setIncrementalRenderingSuppressionTimeoutInSeconds:(NSTimeInterval)timeout;
455 - (NSTimeInterval)incrementalRenderingSuppressionTimeoutInSeconds;
456
457 - (BOOL)diagnosticLoggingEnabled;
458 - (void)setDiagnosticLoggingEnabled:(BOOL)enabled;
459
460 - (void)setStorageBlockingPolicy:(WebStorageBlockingPolicy)storageBlockingPolicy;
461 - (WebStorageBlockingPolicy)storageBlockingPolicy;
462
463 - (BOOL)plugInSnapshottingEnabled;
464 - (void)setPlugInSnapshottingEnabled:(BOOL)enabled;
465
466 - (BOOL)hiddenPageDOMTimerThrottlingEnabled;
467 - (void)setHiddenPageDOMTimerThrottlingEnabled:(BOOL)flag;
468
469 - (BOOL)hiddenPageCSSAnimationSuspensionEnabled;
470 - (void)setHiddenPageCSSAnimationSuspensionEnabled:(BOOL)flag;
471
472 - (BOOL)lowPowerVideoAudioBufferSizeEnabled;
473 - (void)setLowPowerVideoAudioBufferSizeEnabled:(BOOL)enabled;
474
475 - (void)setUseLegacyTextAlignPositionedElementBehavior:(BOOL)flag;
476 - (BOOL)useLegacyTextAlignPositionedElementBehavior;
477
478 - (void)setMediaSourceEnabled:(BOOL)flag;
479 - (BOOL)mediaSourceEnabled;
480
481 - (void)setShouldConvertPositionStyleOnCopy:(BOOL)flag;
482 - (BOOL)shouldConvertPositionStyleOnCopy;
483
484 - (void)setImageControlsEnabled:(BOOL)flag;
485 - (BOOL)imageControlsEnabled;
486
487 - (void)setServiceControlsEnabled:(BOOL)flag;
488 - (BOOL)serviceControlsEnabled;
489
490 - (void)setGamepadsEnabled:(BOOL)flag;
491 - (BOOL)gamepadsEnabled;
492
493 - (void)setMediaKeysStorageDirectory:(NSString *)directory;
494 - (NSString *)mediaKeysStorageDirectory;
495
496 - (void)setMetaRefreshEnabled:(BOOL)flag;
497 - (BOOL)metaRefreshEnabled;
498
499 - (void)setHTTPEquivEnabled:(BOOL)flag;
500 - (BOOL)httpEquivEnabled;
501
502 - (void)setMockCaptureDevicesEnabled:(BOOL)flag;
503 - (BOOL)mockCaptureDevicesEnabled;
504
505 - (void)setEnumeratingAllNetworkInterfacesEnabled:(BOOL)flag;
506 - (BOOL)enumeratingAllNetworkInterfacesEnabled;
507
508 - (void)setIceCandidateFilteringEnabled:(BOOL)flag;
509 - (BOOL)iceCandidateFilteringEnabled;
510
511 - (void)setMediaCaptureRequiresSecureConnection:(BOOL)flag;
512 - (BOOL)mediaCaptureRequiresSecureConnection;
513
514 - (void)setShadowDOMEnabled:(BOOL)flag;
515 - (BOOL)shadowDOMEnabled;
516
517 - (void)setCustomElementsEnabled:(BOOL)flag;
518 - (BOOL)customElementsEnabled;
519
520 - (void)setFetchAPIEnabled:(BOOL)flag;
521 - (BOOL)fetchAPIEnabled;
522
523 - (void)setDownloadAttributeEnabled:(BOOL)flag;
524 - (BOOL)downloadAttributeEnabled;
525
526 - (void)setCSSGridLayoutEnabled:(BOOL)flag;
527 - (BOOL)isCSSGridLayoutEnabled;
528
529 - (void)setWebAnimationsEnabled:(BOOL)flag;
530 - (BOOL)webAnimationsEnabled;
531
532 - (void)setModernMediaControlsEnabled:(BOOL)flag;
533 - (BOOL)modernMediaControlsEnabled;
534
535 - (void)setCredentialManagementEnabled:(BOOL)flag;
536 - (BOOL)credentialManagementEnabled;
537
538 @property (nonatomic) BOOL visualViewportEnabled;
539 @property (nonatomic) BOOL largeImageAsyncDecodingEnabled;
540 @property (nonatomic) BOOL animatedImageAsyncDecodingEnabled;
541 @property (nonatomic) BOOL javaScriptMarkupEnabled;
542 @property (nonatomic) BOOL mediaDataLoadsAutomatically;
543 @property (nonatomic) BOOL attachmentElementEnabled;
544 @property (nonatomic) BOOL allowsInlineMediaPlaybackAfterFullscreen;
545 @property (nonatomic) BOOL intersectionObserverEnabled;
546 @property (nonatomic) BOOL userTimingEnabled;
547 @property (nonatomic) BOOL resourceTimingEnabled;
548 @property (nonatomic) BOOL linkPreloadEnabled;
549 @property (nonatomic) BOOL credentialManagementEnabled;
550
551 #if TARGET_OS_IPHONE
552 @property (nonatomic) BOOL quickLookDocumentSavingEnabled;
553 #endif
554
555 @end