| 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 /** |
| 11 * The handler will send a policy source that is similar, but not exactly the | 11 * The handler will send a policy source that is similar, but not exactly the |
| 12 * same as a ControlledBy value. If the ContentSettingProvider is omitted it | 12 * same as a ControlledBy value. If the ContentSettingProvider is omitted it |
| 13 * should be treated as 'default'. | 13 * should be treated as 'default'. |
| 14 * @enum {string} | 14 * @enum {string} |
| 15 */ | 15 */ |
| 16 var ContentSettingProvider = { | 16 var ContentSettingProvider = { |
| 17 EXTENSION: 'extension', | 17 EXTENSION: 'extension', |
| 18 PREFERENCE: 'preference', | 18 PREFERENCE: 'preference', |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * The site exception information passed form the C++ handler. | 22 * The site exception information passed form the C++ handler. |
| 23 * See also: SiteException. | 23 * See also: SiteException. |
| 24 * @typedef {{embeddingOrigin: string, | 24 * @typedef {{embeddingOrigin: string, |
| 25 * embeddingDisplayName: string, | |
| 26 * incognito: boolean, | 25 * incognito: boolean, |
| 27 * origin: string, | 26 * origin: string, |
| 28 * displayName: string, | 27 * displayName: string, |
| 29 * setting: string, | 28 * setting: string, |
| 30 * source: string}} | 29 * source: string}} |
| 31 */ | 30 */ |
| 32 var RawSiteException; | 31 var RawSiteException; |
| 33 | 32 |
| 34 /** | 33 /** |
| 35 * The site exception after it has been converted/filtered for UI use. | 34 * The site exception after it has been converted/filtered for UI use. |
| 36 * See also: RawSiteException. | 35 * See also: RawSiteException. |
| 37 * @typedef {{category: !settings.ContentSettingsTypes, | 36 * @typedef {{category: !settings.ContentSettingsTypes, |
| 38 * embeddingOrigin: string, | 37 * embeddingOrigin: string, |
| 39 * embeddingDisplayName: string, | |
| 40 * incognito: boolean, | 38 * incognito: boolean, |
| 41 * origin: string, | 39 * origin: string, |
| 42 * displayName: string, | 40 * displayName: string, |
| 43 * setting: string, | 41 * setting: string, |
| 44 * enforcement: string, | 42 * enforcement: string, |
| 45 * controlledBy: string}} | 43 * controlledBy: string}} |
| 46 */ | 44 */ |
| 47 var SiteException; | 45 var SiteException; |
| 48 | 46 |
| 49 /** | 47 /** |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 removeZoomLevel: function(host) { | 424 removeZoomLevel: function(host) { |
| 427 chrome.send('removeZoomLevel', [host]); | 425 chrome.send('removeZoomLevel', [host]); |
| 428 }, | 426 }, |
| 429 }; | 427 }; |
| 430 | 428 |
| 431 return { | 429 return { |
| 432 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, | 430 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, |
| 433 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, | 431 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, |
| 434 }; | 432 }; |
| 435 }); | 433 }); |
| OLD | NEW |