| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 /** | 72 /** |
| 73 * Sets the default value for a site settings category. | 73 * Sets the default value for a site settings category. |
| 74 * @param {string} contentType The name of the category to change. | 74 * @param {string} contentType The name of the category to change. |
| 75 * @param {string} defaultValue The name of the value to set as default. | 75 * @param {string} defaultValue The name of the value to set as default. |
| 76 */ | 76 */ |
| 77 setDefaultValueForContentType: function(contentType, defaultValue) {}, | 77 setDefaultValueForContentType: function(contentType, defaultValue) {}, |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * Gets the default value for a site settings category. | 80 * Gets the default value for a site settings category. |
| 81 * @param {string} contentType The name of the category to query. | 81 * @param {string} contentType The name of the category to query. |
| 82 * @return {Promise<boolean>} | 82 * @return {Promise<string>} The string value of the default setting. |
| 83 */ | 83 */ |
| 84 getDefaultValueForContentType: function(contentType) {}, | 84 getDefaultValueForContentType: function(contentType) {}, |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Gets the exceptions (site list) for a particular category. | 87 * Gets the exceptions (site list) for a particular category. |
| 88 * @param {string} contentType The name of the category to query. | 88 * @param {string} contentType The name of the category to query. |
| 89 * @return {Promise<Array<SiteException>>} | 89 * @return {Promise<Array<SiteException>>} |
| 90 */ | 90 */ |
| 91 getExceptionList: function(contentType) {}, | 91 getExceptionList: function(contentType) {}, |
| 92 | 92 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) { | 310 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) { |
| 311 chrome.send('removeUsbDevice', [origin, embeddingOrigin, usbDevice]); | 311 chrome.send('removeUsbDevice', [origin, embeddingOrigin, usbDevice]); |
| 312 }, | 312 }, |
| 313 }; | 313 }; |
| 314 | 314 |
| 315 return { | 315 return { |
| 316 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, | 316 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, |
| 317 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, | 317 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, |
| 318 }; | 318 }; |
| 319 }); | 319 }); |
| OLD | NEW |