Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1999)

Unified Diff: chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js

Issue 2928243002: Return operation name in prefetch request callback and add internal page hookup (Closed)
Patch Set: Fix comment indent in JS Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698