experimental.webInspector.resources
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
API reference: experimental.webInspector.resources
Properties
getLastError
chrome.extensionlastError
Methods
getHAR
void
experimental.webInspector.resources.getHAR(, function
callback)
Undocumented.
Returns HAR archive that contains all known resource objects.
Parameters
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
- A function that is called upon request completion.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(object har) {...};
-
har
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
- A HAR archieve. See HAR specification for details.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
onFinished
experimental.webInspector.resources.onFinished.addListener(function(Resource resource) {...});
Undocumented.
Fired when a resource request is finished and all resource data are available.
Parameters
-
resource
(
optional
enumerated
Resource
array of
paramType
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
Types
Resource
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
Represents a resource (document, script, image etc). See HAR Specification for reference.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Methods of Resource
getContent
void
resource.getContent(, function
callback)
Undocumented.
Returns resource content.
Parameters
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
- A function that is called upon request completion.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(string content, string encoding) {...};
-
content
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- Resource content (potentially encoded).
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
-
encoding
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- Empty if content is not encoded, encoding name otherwise. Currently, only base64 supported.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.