Index: chrome/common/extensions/api/devtools_api.json |
diff --git a/chrome/common/extensions/api/devtools_api.json b/chrome/common/extensions/api/devtools_api.json |
index e0f0e646d4e41f53a6c21cb5d46b5d9fde9d3522..ca83d602987c64de6f21ef3927d8a255bfaff601 100644 |
--- a/chrome/common/extensions/api/devtools_api.json |
+++ b/chrome/common/extensions/api/devtools_api.json |
@@ -109,13 +109,29 @@ |
{ |
"name": "reload", |
"type": "function", |
- "description": "Reloads the inspected page, optionally setting override for the user agent string.", |
+ "description": "Reloads the inspected page.", |
"parameters": [ |
{ |
- "name": "userAgent", |
- "type": "string", |
+ "type": "object", |
+ "name": "reloadOptions", |
"optional": true, |
- "description": "A user agent override string." |
+ "properties": { |
+ "ignoreCache": { |
+ "type": "boolean", |
+ "optional": true, |
+ "description": "When true, the loader will ignore the cache for all inspected page resources loaded before the <code>load</code> event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or within the Developer Tools window." |
+ }, |
+ "userAgent": { |
+ "type": "string", |
+ "optional": true, |
+ "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resources of the inspected page. The string will also override the value of the <code>navigator.userAgent</code> property that's returned to any scripts that are running within the inspected page." |
+ }, |
+ "injectedScript": { |
+ "type": "string", |
+ "optional": true, |
+ "description": "If specified, the script will be injected into every frame of the inspected page immediately upon load, before any of the frame's scripts. The script will not be injected after subsequent reloads—for example, if the user presses Ctrl+R." |
+ } |
+ } |
} |
] |
}, |