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

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: 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 45d87ae604833a59d4bd6db6c9261671d4350ccf..068cdceb95ce6fb7564faf7b0d6d324e87cd60cc 100644
--- a/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js
+++ b/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js
@@ -124,6 +124,18 @@ cr.define('offlineInternals', function() {
* @return {!Promise} A promise firing when the task has been cancelled.
*/
cancelNwake: function() {},
+
+ /**
+ * Sends a request to generate page bundle.
+ * @return {!Promise} A promise firing when the request is sent.
+ */
+ generatePageBundle: function() {},
+
+ /**
+ * Sends a request to get operation.
+ * @return {!Promise} A promise firing when the request is sent.
+ */
+ getOperation: function() {},
};
/**
@@ -193,6 +205,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 {

Powered by Google App Engine
This is Rietveld 408576698