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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js

Issue 2451553008: [MD settings] move cookie tree management to cookie tree behavior (Closed)
Patch Set: review changes Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_data_details_dialog.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * @fileoverview A helper object used from the "Site Settings" section to 6 * @fileoverview A helper object used from the "Site Settings" section to
7 * interact with the content settings prefs. 7 * interact with the content settings prefs.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 /** 151 /**
152 * Sets a default devices for a given type of media. 152 * Sets a default devices for a given type of media.
153 * @param {string} type The type of media to configure. 153 * @param {string} type The type of media to configure.
154 * @param {string} defaultValue The id of the media device to set. 154 * @param {string} defaultValue The id of the media device to set.
155 */ 155 */
156 setDefaultCaptureDevice: function(type, defaultValue) {}, 156 setDefaultCaptureDevice: function(type, defaultValue) {},
157 157
158 /** 158 /**
159 * Reloads all cookies. 159 * Reloads all cookies.
160 * @return {!Promise<Array<CookieDataSummaryItem>>} Returns the full cookie 160 * @return {!Promise<!CookieList>} Returns the full cookie
161 * list. 161 * list.
162 */ 162 */
163 reloadCookies: function() {}, 163 reloadCookies: function() {},
164 164
165 /** 165 /**
166 * Fetches all children of a given cookie. 166 * Fetches all children of a given cookie.
167 * @param {string} path The path to the parent cookie. 167 * @param {string} path The path to the parent cookie.
168 * @return {!Promise<Array<CookieDataSummaryItem>>} Returns a cookie list 168 * @return {!Promise<!Array<!CookieDataSummaryItem>>} Returns a cookie list
169 * for the given path. 169 * for the given path.
170 */ 170 */
171 loadCookieChildren: function(path) {}, 171 loadCookieChildren: function(path) {},
172 172
173 /** 173 /**
174 * Removes a given cookie. 174 * Removes a given cookie.
175 * @param {string} path The path to the parent cookie. 175 * @param {string} path The path to the parent cookie.
176 */ 176 */
177 removeCookie: function(path) {}, 177 removeCookie: function(path) {},
178 178
179 /** 179 /**
180 * Removes all cookies. 180 * Removes all cookies.
181 * @return {!Promise<Array<CookieDataSummaryItem>>} Returns the up to date 181 * @return {!Promise<!CookieList>} Returns the up to date
182 * cookie list once deletion is complete (empty list). 182 * cookie list once deletion is complete (empty list).
183 */ 183 */
184 removeAllCookies: function() {}, 184 removeAllCookies: function() {},
185 185
186 /** 186 /**
187 * Initializes the protocol handler list. List is returned through JS calls 187 * Initializes the protocol handler list. List is returned through JS calls
188 * to setHandlersEnabled, setProtocolHandlers & setIgnoredProtocolHandlers. 188 * to setHandlersEnabled, setProtocolHandlers & setIgnoredProtocolHandlers.
189 */ 189 */
190 initializeProtocolHandlerList: function() {}, 190 initializeProtocolHandlerList: function() {},
191 191
(...skipping 13 matching lines...) Expand all
205 205
206 /** 206 /**
207 * Deletes a certain protocol handler by url. 207 * Deletes a certain protocol handler by url.
208 * @param {string} protocol The protocol to delete the url from. 208 * @param {string} protocol The protocol to delete the url from.
209 * @param {string} url The url to delete. 209 * @param {string} url The url to delete.
210 */ 210 */
211 removeProtocolHandler: function(protocol, url) {}, 211 removeProtocolHandler: function(protocol, url) {},
212 212
213 /** 213 /**
214 * Fetches a list of all USB devices and the sites permitted to use them. 214 * Fetches a list of all USB devices and the sites permitted to use them.
215 * @return {!Promise<Array<UsbDeviceEntry>>} The list of USB devices. 215 * @return {!Promise<!Array<!UsbDeviceEntry>>} The list of USB devices.
216 */ 216 */
217 fetchUsbDevices: function() {}, 217 fetchUsbDevices: function() {},
218 218
219 /** 219 /**
220 * Removes a particular USB device object permission by origin and embedding 220 * Removes a particular USB device object permission by origin and embedding
221 * origin. 221 * origin.
222 * @param {string} origin The origin to look up the permission for. 222 * @param {string} origin The origin to look up the permission for.
223 * @param {string} embeddingOrigin the embedding origin to look up. 223 * @param {string} embeddingOrigin the embedding origin to look up.
224 * @param {UsbDeviceDetails} usbDevice The USB device to revoke permission 224 * @param {UsbDeviceDetails} usbDevice The USB device to revoke permission
225 * for. 225 * for.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 removeZoomLevel: function(host) { 368 removeZoomLevel: function(host) {
369 chrome.send('removeZoomLevel', [host]); 369 chrome.send('removeZoomLevel', [host]);
370 }, 370 },
371 }; 371 };
372 372
373 return { 373 return {
374 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, 374 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy,
375 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, 375 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl,
376 }; 376 };
377 }); 377 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_data_details_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698