import FrameResourceTree from 'chrome-remote-interface-extra/lib/frames/FrameResourceTree.js'
FrameResourceTree
Constructor Summary
Public Constructor | ||
public |
constructor(resourceTree: CDPFrameResourceTree, frameManager: FrameManager) |
Member Summary
Public Members | ||
public get |
|
|
public get |
resources: Array<FrameResource>: * |
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
[Symbol.iterator](): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>{resources:> |
|
public |
toJSON(): {children: Array<FrameResourceTree>, resources: Array<FrameResource>, frame: ?Frame} |
|
public |
* walkTree(): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>{resources:> Walks the frame resources tree using breadth first traversal |
Private Methods | ||
private |
_buildTree(resourceTree: Object) Recursively creates the resource tree from the values returned by the CDP |
Public Constructors
public constructor(resourceTree: CDPFrameResourceTree, frameManager: FrameManager) source
Params:
Name | Type | Attribute | Description |
resourceTree | CDPFrameResourceTree | Information about the Frame hierarchy along with their cached resources |
|
frameManager | FrameManager | The frame manager for the page this resource's frame came from |
Public Members
Private Members
private _children: Array<FrameResourceTree> source
private _frameManager: FrameManager source
private _resources: Array<FrameResource> source
Public Methods
public [Symbol.iterator](): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>{resources:> source
public toJSON(): {children: Array<FrameResourceTree>, resources: Array<FrameResource>, frame: ?Frame} source
public * walkTree(): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>{resources:> source
Walks the frame resources tree using breadth first traversal