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..4066134e968419485b7842c290922259e265f2a1 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. |
+ * @param {string} urls A list of comma-separated URLs. |
+ * @return {!Promise<string>} A string describing the result. |
+ */ |
+ generatePageBundle: function(urls) {}, |
+ |
+ /** |
+ * Sends and processes a request to get operation. |
+ * @param {string} name Name of operation. |
+ * @return {!Promise<string>} A string describing the result. |
+ */ |
+ getOperation: function(name) {}, |
}; |
/** |
@@ -205,6 +219,16 @@ cr.define('offlineInternals', function() { |
cancelNwake: function() { |
return cr.sendWithPromise('cancelNwake'); |
}, |
+ |
+ /** @override */ |
+ generatePageBundle: function(urls) { |
+ return cr.sendWithPromise('generatePageBundle', urls); |
+ }, |
+ |
+ /** @override */ |
+ getOperation: function(name) { |
+ return cr.sendWithPromise('getOperation', name); |
+ }, |
}; |
return { |