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

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

Issue 2172443004: [Offline Pages] Add network status, save request textbox, and offline url link to offline internals… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update SavePageRequest call after rebase Created 4 years, 5 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 f3312fbcda4a94497918104ef01f57a55d98d9f7..1316c9d696e60038a6ebfead8ea6c38dbd9fb44c 100644
--- a/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js
+++ b/chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js
@@ -95,6 +95,21 @@ cr.define('offlineInternals', function() {
* is retrieved.
*/
getLoggingState: function() {},
+
+ /**
+ * Adds the given url to the background loader queue.
+ * @param {string} url Url of the page to load later.
+ * @return {!Promise<boolean>} A promise firing after added to queue.
+ * Promise will return true if url has been successfully added.
+ */
+ addToRequestQueue: function(url) {},
+
+ /**
+ * Gets the current network status in string form.
+ * @return {!Promise<string>} A promise firing when the network status
+ * is retrieved.
+ */
+ getNetworkStatus: function() {},
};
/**
@@ -143,7 +158,17 @@ cr.define('offlineInternals', function() {
/** @override */
getLoggingState: function() {
return cr.sendWithPromise('getLoggingState');
- }
+ },
+
+ /** @override */
+ addToRequestQueue: function(url) {
+ return cr.sendWithPromise('addToRequestQueue', url);
+ },
+
+ /** @override */
+ getNetworkStatus: function() {
+ return cr.sendWithPromise('getNetworkStatus');
+ },
};
return {
« no previous file with comments | « chrome/browser/resources/offline_pages/offline_internals.js ('k') | chrome/browser/ui/webui/offline_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698