| 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 * Only used for tests. |
| 7 * @typedef {{ |
| 8 * auto_downloads: !Array<!RawSiteException>}, |
| 9 * background_sync: !Array<!RawSiteException>}, |
| 10 * camera: !Array<!RawSiteException>}, |
| 11 * cookies: !Array<!RawSiteException>}, |
| 12 * geolocation: !Array<!RawSiteException>}, |
| 13 * javascript: !Array<!RawSiteException>}, |
| 14 * mic: !Array<!RawSiteException>}, |
| 15 * midiDevices: !Array<!RawSiteException>}, |
| 16 * notifications: !Array<!RawSiteException>}, |
| 17 * plugins: !Array<!RawSiteException>}, |
| 18 * popups: !Array<!RawSiteException>}, |
| 19 * unsandboxed_plugins: !Array<!RawSiteException>}, |
| 20 * }} |
| 21 */ |
| 22 var ExceptionListPref; |
| 23 |
| 24 /** |
| 25 * In the real (non-test) code, these data come from the C++ handler. |
| 26 * Only used for tests. |
| 27 * @typedef {{defaults: CategoryDefaultsPref, |
| 28 * exceptions: ExceptionListPref}} |
| 29 */ |
| 30 var SiteSettingsPref; |
| 31 |
| 32 /** |
| 6 * An example empty pref. | 33 * An example empty pref. |
| 7 * @type {SiteSettingsPref} | 34 * @type {SiteSettingsPref} |
| 8 */ | 35 */ |
| 9 var prefsEmpty = { | 36 var prefsEmpty = { |
| 10 defaults: { | 37 defaults: { |
| 11 auto_downloads: '', | 38 auto_downloads: '', |
| 12 background_sync: '', | 39 background_sync: '', |
| 13 camera: '', | 40 camera: '', |
| 14 cookies: '', | 41 cookies: '', |
| 15 geolocation: '', | 42 geolocation: '', |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 /** @override */ | 358 /** @override */ |
| 332 setProtocolDefault: function() { | 359 setProtocolDefault: function() { |
| 333 this.methodCalled('setProtocolDefault', arguments); | 360 this.methodCalled('setProtocolDefault', arguments); |
| 334 }, | 361 }, |
| 335 | 362 |
| 336 /** @override */ | 363 /** @override */ |
| 337 removeProtocolHandler: function() { | 364 removeProtocolHandler: function() { |
| 338 this.methodCalled('removeProtocolHandler', arguments); | 365 this.methodCalled('removeProtocolHandler', arguments); |
| 339 } | 366 } |
| 340 }; | 367 }; |
| OLD | NEW |