Chromium Code Reviews| 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 * @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 Loading... | |
| 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 |
|
Dan Beam
2016/10/27 01:31:55
arguably these should be !CookieList (unless they
dschuyler
2016/10/27 20:47:35
Done.
| |
| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 }); |
| OLD | NEW |