| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @typedef {{ | 6 * @typedef {{ |
| 7 * onlineUrl: string, | 7 * onlineUrl: string, |
| 8 * creationTime: number, | 8 * creationTime: number, |
| 9 * id: string, | 9 * id: string, |
| 10 * namespace: string, | 10 * namespace: string, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Deletes a set of pages from stored pages | 66 * Deletes a set of pages from stored pages |
| 67 * @param {!Array<string>} ids A list of page IDs to delete. | 67 * @param {!Array<string>} ids A list of page IDs to delete. |
| 68 * @return {!Promise<!string>} A promise firing when the selected | 68 * @return {!Promise<!string>} A promise firing when the selected |
| 69 * pages are deleted. | 69 * pages are deleted. |
| 70 */ | 70 */ |
| 71 deleteSelectedPages: function(ids) {}, | 71 deleteSelectedPages: function(ids) {}, |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Deletes all the requests from the request queue. |
| 75 * @return {!Promise<!string>} A promise firing when the pages are deleted. |
| 76 */ |
| 77 deleteAllRequests: function() {}, |
| 78 |
| 79 /** |
| 80 * Deletes a set of requests from the request queue |
| 81 * @param {!Array<string>} ids A list of request IDs to delete. |
| 82 * @return {!Promise<!string>} A promise firing when the selected |
| 83 * pages are deleted. |
| 84 */ |
| 85 deleteSelectedRequests: function(ids) {}, |
| 86 |
| 87 /** |
| 74 * Sets whether to record logs for stored pages. | 88 * Sets whether to record logs for stored pages. |
| 75 * @param {boolean} shouldLog True if logging should be enabled. | 89 * @param {boolean} shouldLog True if logging should be enabled. |
| 76 */ | 90 */ |
| 77 setRecordPageModel: function(shouldLog) {}, | 91 setRecordPageModel: function(shouldLog) {}, |
| 78 | 92 |
| 79 /** | 93 /** |
| 80 * Sets whether to record logs for scheduled requests. | 94 * Sets whether to record logs for scheduled requests. |
| 81 * @param {boolean} shouldLog True if logging should be enabled. | 95 * @param {boolean} shouldLog True if logging should be enabled. |
| 82 */ | 96 */ |
| 83 setRecordRequestQueue: function(shouldLog) {}, | 97 setRecordRequestQueue: function(shouldLog) {}, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 deleteAllPages: function() { | 148 deleteAllPages: function() { |
| 135 return cr.sendWithPromise('deleteAllPages'); | 149 return cr.sendWithPromise('deleteAllPages'); |
| 136 }, | 150 }, |
| 137 | 151 |
| 138 /** @override */ | 152 /** @override */ |
| 139 deleteSelectedPages: function(ids) { | 153 deleteSelectedPages: function(ids) { |
| 140 return cr.sendWithPromise('deleteSelectedPages', ids); | 154 return cr.sendWithPromise('deleteSelectedPages', ids); |
| 141 }, | 155 }, |
| 142 | 156 |
| 143 /** @override */ | 157 /** @override */ |
| 158 deleteAllRequests: function() { |
| 159 return cr.sendWithPromise('deleteAllRequests'); |
| 160 }, |
| 161 |
| 162 /** @override */ |
| 163 deleteSelectedRequests: function(ids) { |
| 164 return cr.sendWithPromise('deleteSelectedRequests', ids); |
| 165 }, |
| 166 |
| 167 /** @override */ |
| 144 setRecordPageModel: function(shouldLog) { | 168 setRecordPageModel: function(shouldLog) { |
| 145 chrome.send('setRecordPageModel', [shouldLog]); | 169 chrome.send('setRecordPageModel', [shouldLog]); |
| 146 }, | 170 }, |
| 147 | 171 |
| 148 /** @override */ | 172 /** @override */ |
| 149 setRecordRequestQueue: function(shouldLog) { | 173 setRecordRequestQueue: function(shouldLog) { |
| 150 chrome.send('setRecordRequestQueue', [shouldLog]); | 174 chrome.send('setRecordRequestQueue', [shouldLog]); |
| 151 }, | 175 }, |
| 152 | 176 |
| 153 /** @override */ | 177 /** @override */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 169 getNetworkStatus: function() { | 193 getNetworkStatus: function() { |
| 170 return cr.sendWithPromise('getNetworkStatus'); | 194 return cr.sendWithPromise('getNetworkStatus'); |
| 171 }, | 195 }, |
| 172 }; | 196 }; |
| 173 | 197 |
| 174 return { | 198 return { |
| 175 OfflineInternalsBrowserProxy: OfflineInternalsBrowserProxy, | 199 OfflineInternalsBrowserProxy: OfflineInternalsBrowserProxy, |
| 176 OfflineInternalsBrowserProxyImpl: OfflineInternalsBrowserProxyImpl | 200 OfflineInternalsBrowserProxyImpl: OfflineInternalsBrowserProxyImpl |
| 177 }; | 201 }; |
| 178 }); | 202 }); |
| OLD | NEW |