internals.idl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. /*
  2. * Copyright (C) 2012 Google Inc. All rights reserved.
  3. * Copyright (C) 2013 Apple Inc. All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
  16. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
  19. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  22. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  24. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. */
  26. [
  27. DoNotCheckConstants
  28. ] interface Internals {
  29. GCObservation observeGC(any observed);
  30. [RaisesException] DOMString elementLayoutTreeAsText(Element element);
  31. boolean isPreloaded(DOMString url);
  32. boolean isPreloadedBy(DOMString url, Document document);
  33. boolean isLoading(DOMString url);
  34. boolean isLoadingFromMemoryCache(DOMString url);
  35. // Call this function with the URL of a resource that has not yet been
  36. // fetched. It returns a promise that resolves with the initial priority
  37. // of the request, once it has been made.
  38. [CallWith=ScriptState] Promise<unsigned long> getInitialResourcePriority(DOMString url, Document document);
  39. DOMString getResourceHeader(DOMString url, DOMString header, Document document);
  40. boolean doesWindowHaveUrlFragment(Window window);
  41. CSSStyleDeclaration computedStyleIncludingVisitedInfo(Node node);
  42. ShadowRoot createUserAgentShadowRoot(Element host);
  43. ShadowRoot shadowRoot(Element host);
  44. void setBrowserControlsState(float top_height, float bottom_height, boolean shrinksLayout);
  45. void setBrowserControlsShownRatio(float top_ratio, float bottom_ratio);
  46. Node effectiveRootScroller(Document document);
  47. [RaisesException] DOMString shadowRootType(Node root);
  48. [RaisesException] unsigned long countElementShadow(Node Root);
  49. DOMString shadowPseudoId(Element element);
  50. Node treeScopeRootNode(Node node);
  51. Node parentTreeScope(Node node);
  52. [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, Node treeScope2);
  53. [RaisesException] unsigned long updateStyleAndReturnAffectedElementCount();
  54. [RaisesException] unsigned long needsLayoutCount();
  55. [RaisesException] unsigned long layoutCountForTesting();
  56. [RaisesException] unsigned long hitTestCount(Document document);
  57. [RaisesException] unsigned long hitTestCacheHits(Document document);
  58. [RaisesException] Element? elementFromPoint(Document document, double x, double y, boolean ignoreClipping, boolean allowChildFrameContent);
  59. [RaisesException] void clearHitTestCache(Document document);
  60. // Allows inspection of the inner editor node.
  61. [RaisesException] Element? innerEditorElement(Element container);
  62. // Animation testing.
  63. [RaisesException] void pauseAnimations(double pauseTime);
  64. boolean isCompositedAnimation(Animation animation);
  65. void disableCompositedAnimation(Animation animation);
  66. // Advances an animated image. For BitmapImage (e.g., animated gifs) this
  67. // will advance to the next frame. For SVGImage, this will trigger an
  68. // animation update for CSS and advance the SMIL timeline by one frame.
  69. [RaisesException] void advanceImageAnimation(Element image);
  70. [RaisesException] Node nextSiblingInFlatTree(Node node);
  71. [RaisesException] Node firstChildInFlatTree(Node node);
  72. [RaisesException] Node lastChildInFlatTree(Node node);
  73. [RaisesException] Node nextInFlatTree(Node node);
  74. [RaisesException] Node previousInFlatTree(Node node);
  75. DOMString visiblePlaceholder(Element element);
  76. boolean isValidationMessageVisible(Element element);
  77. void selectColorInColorChooser(Element element, DOMString colorValue);
  78. void endColorChooser(Element element);
  79. // If the argument is omitted, the top-level document is used.
  80. boolean hasAutofocusRequest(optional Document document);
  81. [RaisesException] sequence<DOMString> formControlStateOfHistoryItem();
  82. [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
  83. readonly attribute Window pagePopupWindow;
  84. [RaisesException] DOMRectReadOnly absoluteCaretBounds();
  85. DOMRectReadOnly boundingBox(Element element);
  86. [RaisesException] void setMarker(Document document, Range range, DOMString markerType);
  87. [RaisesException] unsigned long markerCountForNode(Text text, DOMString markerType);
  88. unsigned long activeMarkerCountForNode(Text text);
  89. [RaisesException] Range markerRangeForNode(Text text, DOMString markerType, unsigned long index);
  90. [RaisesException] DOMString markerDescriptionForNode(Text text, DOMString markerType, unsigned long index);
  91. [RaisesException] unsigned long markerBackgroundColorForNode(Text text, DOMString markerType, unsigned long index);
  92. [RaisesException] unsigned long markerUnderlineColorForNode(Text text, DOMString markerType, unsigned long index);
  93. [RaisesException] void addTextMatchMarker(Range range, DOMString matchStatus);
  94. [RaisesException] void addCompositionMarker(Range range, DOMString underlineColorValue, DOMString thicknessValue, DOMString underlineStyleValue, DOMString textColorValue, DOMString backgroundColorValue);
  95. [RaisesException] void addActiveSuggestionMarker(Range range, DOMString underlineColorValue, DOMString thicknessValue, DOMString backgroundColorValue);
  96. [RaisesException] void addSuggestionMarker(Range range, sequence<DOMString> suggestions, DOMString suggestionHighlightColorValue, DOMString underlineColorValue, DOMString thicknessValue, DOMString backgroundColorValue);
  97. void setTextMatchMarkersActive(Node node, unsigned long startOffset, unsigned long endOffset, boolean active);
  98. void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight);
  99. [RaisesException] DOMString viewportAsText(Document document,
  100. float devicePixelRatio,
  101. long availableWidth,
  102. long availableHeight);
  103. [RaisesException] boolean elementShouldAutoComplete(Element inputElement);
  104. [RaisesException] DOMString suggestedValue(Element inputElement);
  105. [RaisesException] void setSuggestedValue(Element inputElement, DOMString value);
  106. [RaisesException] void setAutofilledValue(Element inputElement, DOMString value);
  107. [RaisesException] void setEditingValue(Element inputElement, DOMString value);
  108. [RaisesException] void setAutofilled(Element inputElement, boolean enabled);
  109. [RaisesException] void setSelectionRangeForNumberType(Element inputElement, unsigned long start, unsigned long end);
  110. Range rangeFromLocationAndLength(Element scope, long rangeLocation, long rangeLength);
  111. unsigned long locationFromRange(Element scope, Range range);
  112. unsigned long lengthFromRange(Element scope, Range range);
  113. DOMString rangeAsText(Range range);
  114. [RaisesException] DOMPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
  115. [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
  116. [RaisesException] DOMPoint touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
  117. [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
  118. [RaisesException] long lastSpellCheckRequestSequence(Document document);
  119. [RaisesException] long lastSpellCheckProcessedSequence(Document document);
  120. [RaisesException] long spellCheckedTextLength(Document document);
  121. [RaisesException] void cancelCurrentSpellCheckRequest(Document document);
  122. [RaisesException] DOMString idleTimeSpellCheckerState(Document document);
  123. [RaisesException] void runIdleTimeSpellChecker(Document document);
  124. sequence<DOMString> userPreferredLanguages();
  125. void setUserPreferredLanguages(sequence<DOMString> languages);
  126. void setSystemTimeZone(DOMString timezone);
  127. unsigned long mediaKeysCount();
  128. unsigned long mediaKeySessionCount();
  129. unsigned long wheelEventHandlerCount(Document document);
  130. unsigned long scrollEventHandlerCount(Document document);
  131. unsigned long touchStartOrMoveEventHandlerCount(Document document);
  132. unsigned long touchEndOrCancelEventHandlerCount(Document document);
  133. unsigned long pointerEventHandlerCount(Document document);
  134. [RaisesException] HitTestLayerRectList touchEventTargetLayerRects(Document document);
  135. [RaisesException] boolean executeCommand(Document document, DOMString name, DOMString value);
  136. void triggerTestInspectorIssue(Document document);
  137. DOMString htmlNamespace();
  138. sequence<DOMString> htmlTags();
  139. DOMString svgNamespace();
  140. sequence<DOMString> svgTags();
  141. [RaisesException] NodeList nodesFromRect(Document document, long x, long y,
  142. unsigned long width, unsigned long height, boolean ignoreClipping,
  143. boolean allowChildFrameContent);
  144. [RaisesException] boolean hasSpellingMarker(Document document, long from, long length);
  145. [RaisesException] boolean hasGrammarMarker(Document document, long from, long length);
  146. [RaisesException] void replaceMisspelled(Document document, DOMString replacement);
  147. boolean canHyphenate(DOMString locale);
  148. void setMockHyphenation(DOMString locale);
  149. unsigned long numberOfScrollableAreas(Document document);
  150. boolean isPageBoxVisible(Document document, long pageNumber);
  151. readonly attribute InternalSettings settings;
  152. readonly attribute InternalRuntimeFlags runtimeFlags;
  153. readonly attribute unsigned long workerThreadCount;
  154. // Flag for layerTreeAsText. The value must be kept in sync with the value
  155. // of LayerTreeFlags in layers_as_json.h.
  156. // Other flags in LayerTreeFlags are not supported in internals API.
  157. const unsigned short LAYER_TREE_INCLUDES_INVALIDATIONS = 2;
  158. const unsigned short LAYER_TREE_INCLUDES_DETAILED_INVALIDATIONS = 4;
  159. [RaisesException] DOMString layerTreeAsText(Document document, optional unsigned short flags);
  160. DOMString scrollingStateTreeAsText(Document document);
  161. [RaisesException] DOMString mainThreadScrollingReasons(Document document);
  162. [RaisesException] DOMRectList nonFastScrollableRects(Document document);
  163. void evictAllResources();
  164. unsigned long numberOfLiveNodes();
  165. unsigned long numberOfLiveDocuments();
  166. DOMString counterValue(Element element);
  167. [RaisesException] long pageNumber(Element element, optional float pageWidth = 800, optional float pageHeight = 600);
  168. sequence<DOMString> shortcutIconURLs(Document document);
  169. sequence<DOMString> allIconURLs(Document document);
  170. [RaisesException] long numberOfPages(optional double pageWidthInPixels = 800, optional double pageHeightInPixels = 600);
  171. [RaisesException] DOMString pageProperty(DOMString propertyName, unsigned long pageNumber);
  172. [RaisesException] DOMString pageSizeAndMarginsInPixels(unsigned long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft);
  173. [RaisesException] float pageScaleFactor();
  174. [RaisesException] void setPageScaleFactor(float scaleFactor);
  175. [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor);
  176. [RaisesException] float pageZoomFactor();
  177. [RaisesException] void setIsCursorVisible(Document document, boolean isVisible);
  178. void setMaxNumberOfFramesToTen(boolean enable);
  179. // HTMLMediaElement, HTMLAudioElement and HTMLVideoElement.
  180. DOMString effectivePreload(HTMLMediaElement mediaElement);
  181. void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement, boolean available);
  182. void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolean remote);
  183. void setPersistent(HTMLVideoElement video, boolean persistent);
  184. void forceStaleStateForMediaElement(HTMLMediaElement mediaElement, long state);
  185. boolean isMediaElementSuspended(HTMLMediaElement mediaElement);
  186. void setMediaControlsTestMode(HTMLMediaElement mediaElement, boolean enable);
  187. void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
  188. void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, sequence<DOMString> policyAreas);
  189. void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString scheme);
  190. TypeConversions typeConversions();
  191. sequence<DOMString> getReferencedFilePaths();
  192. // This should be called if <input type=file> refers to files selected
  193. // without the browser process.
  194. void disableReferencedFilePathsVerification();
  195. // These functions both reset the tracked repaint rects. They are intended to be used in the following order:
  196. // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints().
  197. [RaisesException] void startTrackingRepaints(Document document);
  198. [RaisesException] void stopTrackingRepaints(Document document);
  199. // |node| should be Document, HTMLIFrameElement, or unspecified.
  200. // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
  201. // specified without security checks. Unspecified means this document.
  202. [RaisesException] void updateLayoutAndRunPostLayoutTasks(optional Node? node = null);
  203. [RaisesException] void forceFullRepaint(Document document);
  204. // Returns a list of draggable/non-draggable regions in the document.
  205. [RaisesException] DOMRectList draggableRegions(Document document);
  206. [RaisesException] DOMRectList nonDraggableRegions(Document document);
  207. // Returns a string with information about the mouse cursor used at the specified client location.
  208. DOMString getCurrentCursorInfo();
  209. readonly attribute boolean cursorUpdatePending;
  210. DOMString markerTextForListItem(Element element);
  211. [CallWith=Isolate, RaisesException] ArrayBuffer serializeObject(any obj);
  212. [CallWith=Isolate] any deserializeBuffer(ArrayBuffer buffer);
  213. void forceReload(boolean endToEnd);
  214. DOMString getImageSourceURL(Element element);
  215. [RaisesException] void forceImageReload(Element element);
  216. DOMString selectMenuListText(HTMLSelectElement select);
  217. boolean isSelectPopupVisible(Node node);
  218. boolean selectPopupItemStyleIsRtl(Node select, long itemIndex);
  219. long selectPopupItemStyleFontHeight(Node select, long itemIndex);
  220. void resetTypeAheadSession(HTMLSelectElement select);
  221. StaticSelection getDragCaret();
  222. [RaisesException] StaticSelection getSelectionInFlatTree(Window window);
  223. // TODO(editing-dev): We should change |visibleSelection*| to
  224. // |StaticSelection|.
  225. readonly attribute Node? visibleSelectionAnchorNode;
  226. readonly attribute unsigned long visibleSelectionAnchorOffset;
  227. readonly attribute Node? visibleSelectionFocusNode;
  228. readonly attribute unsigned long visibleSelectionFocusOffset;
  229. [RaisesException] DOMRect selectionBounds();
  230. readonly attribute DOMString textAffinity;
  231. [RaisesException] void forceCompositingUpdate(Document document);
  232. void setDarkPreferredColorScheme(Document document);
  233. void setForcedColorsAndDarkPreferredColorScheme(Document document);
  234. [RaisesException] void setShouldRevealPassword(Element element, boolean reveal);
  235. [CallWith=ScriptState] Promise<any> createResolvedPromise(any value);
  236. [CallWith=ScriptState] Promise<any> createRejectedPromise(any reason);
  237. [CallWith=ScriptState] Promise<any> addOneToPromise(Promise<any> promise);
  238. [CallWith=ScriptState, RaisesException] Promise<any> promiseCheck(long arg1, boolean arg2, object arg3, DOMString arg4, sequence<DOMString> arg5);
  239. [CallWith=ScriptState] Promise<any> promiseCheckWithoutExceptionState(object arg1, DOMString arg2, DOMString... variadic);
  240. [CallWith=ScriptState] Promise<any> promiseCheckRange([EnforceRange] octet arg1);
  241. [CallWith=ScriptState] Promise<any> promiseCheckOverload(Location arg1);
  242. [CallWith=ScriptState] Promise<any> promiseCheckOverload(Document arg1);
  243. [CallWith=ScriptState] Promise<any> promiseCheckOverload(Location arg1, long arg2, long arg3);
  244. void setValueForUser(HTMLInputElement element, DOMString value);
  245. void setFocused(boolean focused);
  246. void setInitialFocus(boolean reverse);
  247. // When the FocuslessSpatialNavigation feature is enabled, spatial
  248. // navigation moves "interest" around a page, rather than focus. This
  249. // attribute returns the currently interested element on the page.
  250. readonly attribute Element? interestedElement;
  251. // Returns true if page associated with current internals object is
  252. // active.
  253. boolean isActivated();
  254. boolean isInCanvasFontCache(Document document, DOMString fontString);
  255. unsigned long canvasFontCacheMaxFonts();
  256. void forceLoseCanvasContext(HTMLCanvasElement canvas, DOMString contextType);
  257. void forceLoseCanvasContext(OffscreenCanvas offscreencanvas, DOMString context_type);
  258. DictionaryTest dictionaryTest();
  259. RecordTest recordTest();
  260. SequenceTest sequenceTest();
  261. UnionTypesTest unionTypesTest();
  262. CallbackFunctionTest callbackFunctionTest();
  263. [RaisesException] void setScrollChain(ScrollState scrollState, sequence<Element> elements);
  264. DOMString selectedHTMLForClipboard();
  265. DOMString selectedTextForClipboard();
  266. void setVisualViewportOffset(long x, long y);
  267. boolean isUseCounted(Document document, unsigned long feature);
  268. boolean isCSSPropertyUseCounted(Document document, DOMString propertyName);
  269. boolean isAnimatedCSSPropertyUseCounted(Document document, DOMString propertyName);
  270. void clearUseCounter(Document document, unsigned long feature);
  271. sequence<DOMString> getCSSPropertyLonghands();
  272. sequence<DOMString> getCSSPropertyShorthands();
  273. sequence<DOMString> getCSSPropertyAliases();
  274. // Returns a promise that is resolved when |feature| is counted on
  275. // |document|'s UseCounter. When |feature| was already counted, it's
  276. // immediately resolved.
  277. [CallWith=ScriptState] Promise<boolean> observeUseCounter(Document document, unsigned long feature);
  278. readonly attribute unsigned long length;
  279. getter long (unsigned long index);
  280. iterable<long>;
  281. [Unscopable] readonly attribute DOMString unscopableAttribute;
  282. [Unscopable] DOMString unscopableMethod();
  283. void setCapsLockState(boolean enabled);
  284. // pseudo: One of ":focus", ":focus-within", ":active", and ":hover".
  285. [RaisesException] void setPseudoClassState(Element element, DOMString pseudo, boolean enabled);
  286. // Returns whether the scrollbar was able to be shown or hidden; not all platforms
  287. // support overlay scrollbars.
  288. boolean setScrollbarVisibilityInScrollableArea(Node node, boolean visible);
  289. [RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platformTime);
  290. // Translate an event's DOMHighResTimeStamp in seconds into a monotonic time
  291. // in milliseconds.
  292. long long zeroBasedDocumentTimeToMonotonicTime(double domHighResTimeStamp);
  293. long long currentTimeTicks();
  294. DOMString getScrollAnimationState(Node node);
  295. DOMString getProgrammaticScrollAnimationState(Node node);
  296. OriginTrialsTest originTrialsTest();
  297. void crash();
  298. DOMString evaluateInInspectorOverlay(DOMString script);
  299. void setIsLowEndDevice(boolean isLowEndDevice);
  300. boolean isLowEndDevice();
  301. sequence<DOMString> supportedTextEncodingLabels();
  302. // When RuntimeEnabledFeatures::PaintUnderInvalidationCheckingEnabled() and
  303. // simulateRasterUnderInvalidation(true) is called, all changed pixels will
  304. // be reported as raster under-invalidations.
  305. void simulateRasterUnderInvalidations(boolean enable);
  306. // The number of calls to update the blink lifecycle (see:
  307. // LocalFrameView::UpdateLifecyclePhasesInternal).
  308. unsigned long LifecycleUpdateCount();
  309. // Disable the 'delay' option for IntersectionObserver, so that observations
  310. // are recomputed on every frame. This eliminates the need to add
  311. // setTimeout(..., delay_ms) calls to web tests to wait for notifications
  312. // to be generated.
  313. void DisableIntersectionObserverThrottleDelay();
  314. // Reports whether an iframe's browsing context runs in a separate process
  315. boolean isSiteIsolated(HTMLIFrameElement iframe);
  316. // Reports whether a parent document is propagating occlusion information
  317. // down to a child frame, for the purpose of servicing IntersectionObserver
  318. // instances that track visibility.
  319. boolean isTrackingOcclusionForIFrame(HTMLIFrameElement iframe);
  320. // Declare that the given |name| is in use by the embedder via the custom
  321. // element mechanism.
  322. [RaisesException] void addEmbedderCustomElementName(DOMString name);
  323. // Returns the current serialized import map of the Document.
  324. [RaisesException] DOMString getParsedImportMap(Document document);
  325. // Sets the scale for devtools device emulation.
  326. [RaisesException] void setDeviceEmulationScale(float scale);
  327. // Return a string that identifies |window|'s WindowAgent. You can use it
  328. // to distinguish different Agent instances (perhaps in a remote process).
  329. // The returned string is composed of the process ID and the memory address
  330. // of the Agent object.
  331. DOMString getAgentId(Window window);
  332. void useMockOverlayScrollbars();
  333. readonly attribute boolean overlayScrollbarsEnabled;
  334. // Request generation of a Reporting report.
  335. void generateTestReport(DOMString message);
  336. [RaisesException] void setIsAdFrame(HTMLIFrameElement iframe);
  337. [RaisesException, CallWith=ScriptState] ReadableStream createReadableStream(long queueSize, DOMString optimizer);
  338. // The return value consists of a WritableStream (.stream) and a promise of
  339. // a sink object (.sink).
  340. [RaisesException, CallWith=ScriptState] any createWritableStreamAndSink(long queueSize, DOMString optimizer);
  341. void setAllowPerChunkTransferring(ReadableStream stream);
  342. void setBackForwardCacheRestorationBufferSize(long maxSize);
  343. };