Index: chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js |
diff --git a/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js b/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js |
index 6e1ad1f68c2f50dc08a9e83d90314a22f1124b64..9ca4f1f83136cdf9fcd792439fd250fae9415e21 100644 |
--- a/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js |
+++ b/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js |
@@ -131,6 +131,20 @@ cr.define('offlineInternals', function() { |
* @return {!Promise} A promise firing when the task has been cancelled. |
*/ |
cancelNwake: function() {}, |
+ |
+ /** |
+ * Sends and processes a request to generate page bundle. |
+ * @return {!Promise} A promise firing when the request is sent. Promise |
+ * will return a string describing the result. |
+ */ |
+ generatePageBundle: function(data) {}, |
dpapad
2017/06/13 01:14:26
The returned type should be reported inside the {!
jianli
2017/06/13 22:06:12
Done.
|
+ |
+ /** |
+ * Sends and processes a request to get operation. |
+ * @return {!Promise} A promise firing when the request is sent. Promise |
dpapad
2017/06/13 01:14:26
Same here.
jianli
2017/06/13 22:06:13
Done.
|
+ * will return a string describing the result. |
+ */ |
+ getOperation: function(data) {}, |
}; |
/** |
@@ -205,6 +219,16 @@ cr.define('offlineInternals', function() { |
cancelNwake: function() { |
return cr.sendWithPromise('cancelNwake'); |
}, |
+ |
+ /** @override */ |
+ generatePageBundle: function(data) { |
+ return cr.sendWithPromise('generatePageBundle', data); |
+ }, |
+ |
+ /** @override */ |
+ getOperation: function(data) { |
+ return cr.sendWithPromise('getOperation', data); |
+ }, |
}; |
return { |