Home Reference Source
public class | since chrome-remote-interface-extra | source

FrameResourceTree

See:

Constructor Summary

Public Constructor
public

constructor(resourceTree: CDPFrameResourceTree, frameManager: FrameManager)

Member Summary

Public Members
public get
public get
Private Members
private
private
private
private

Method Summary

Public Methods
public

[Symbol.iterator](): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>

public

toJSON(): {children: Array<FrameResourceTree>, resources: Array<FrameResource>, frame: ?Frame}

public

* walkTree(): Iterator<{resources: Array<FrameResource>, frame: ?Frame}>

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:

NameTypeAttributeDescription
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

public get children: Array<FrameResourceTree>: * source

public get resources: Array<FrameResource>: * source

Return:

Array<FrameResource>

Private Members

private _children: Array<FrameResourceTree> source

private _frame: Frame source

private _frameManager: FrameManager source

private _resources: Array<FrameResource> source

Public Methods

public [Symbol.iterator](): Iterator<{resources: Array<FrameResource>, frame: ?Frame}> source

Return:

Iterator<{resources: Array<FrameResource>, frame: ?Frame}>

public toJSON(): {children: Array<FrameResourceTree>, resources: Array<FrameResource>, frame: ?Frame} source

Return:

{children: Array<FrameResourceTree>, resources: Array<FrameResource>, frame: ?Frame}

public * walkTree(): Iterator<{resources: Array<FrameResource>, frame: ?Frame}> source

Walks the frame resources tree using breadth first traversal

Return:

Iterator<{resources: Array<FrameResource>, frame: ?Frame}>

Private Methods

private _buildTree(resourceTree: Object) source

Recursively creates the resource tree from the values returned by the CDP

Params:

NameTypeAttributeDescription
resourceTree Object