| 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 {
|
|
|