| 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. | 6 * Only used for tests. |
| 7 * @typedef {{ | 7 * @typedef {{ |
| 8 * auto_downloads: !Array<!RawSiteException>}, | 8 * auto_downloads: !Array<!RawSiteException>}, |
| 9 * background_sync: !Array<!RawSiteException>}, | 9 * background_sync: !Array<!RawSiteException>}, |
| 10 * camera: !Array<!RawSiteException>}, | 10 * camera: !Array<!RawSiteException>}, |
| 11 * cookies: !Array<!RawSiteException>}, | 11 * cookies: !Array<!RawSiteException>}, |
| 12 * geolocation: !Array<!RawSiteException>}, | 12 * geolocation: !Array<!RawSiteException>}, |
| 13 * javascript: !Array<!RawSiteException>}, | 13 * javascript: !Array<!RawSiteException>}, |
| 14 * mic: !Array<!RawSiteException>}, | 14 * mic: !Array<!RawSiteException>}, |
| 15 * midiDevices: !Array<!RawSiteException>}, | 15 * midiDevices: !Array<!RawSiteException>}, |
| 16 * notifications: !Array<!RawSiteException>}, | 16 * notifications: !Array<!RawSiteException>}, |
| 17 * plugins: !Array<!RawSiteException>}, | 17 * plugins: !Array<!RawSiteException>}, |
| 18 * images: !Array<!RawSiteException>}, |
| 18 * popups: !Array<!RawSiteException>}, | 19 * popups: !Array<!RawSiteException>}, |
| 19 * unsandboxed_plugins: !Array<!RawSiteException>}, | 20 * unsandboxed_plugins: !Array<!RawSiteException>}, |
| 20 * }} | 21 * }} |
| 21 */ | 22 */ |
| 22 var ExceptionListPref; | 23 var ExceptionListPref; |
| 23 | 24 |
| 24 /** | 25 /** |
| 25 * In the real (non-test) code, these data come from the C++ handler. | 26 * In the real (non-test) code, these data come from the C++ handler. |
| 26 * Only used for tests. | 27 * Only used for tests. |
| 27 * @typedef {{defaults: CategoryDefaultsPref, | 28 * @typedef {{defaults: CategoryDefaultsPref, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 auto_downloads: '', | 39 auto_downloads: '', |
| 39 background_sync: '', | 40 background_sync: '', |
| 40 camera: '', | 41 camera: '', |
| 41 cookies: '', | 42 cookies: '', |
| 42 geolocation: '', | 43 geolocation: '', |
| 43 javascript: '', | 44 javascript: '', |
| 44 mic: '', | 45 mic: '', |
| 45 midiDevices: '', | 46 midiDevices: '', |
| 46 notifications: '', | 47 notifications: '', |
| 47 plugins: '', | 48 plugins: '', |
| 49 images: '', |
| 48 popups: '', | 50 popups: '', |
| 49 subresource_filter: '', | 51 subresource_filter: '', |
| 50 unsandboxed_plugins: '', | 52 unsandboxed_plugins: '', |
| 51 }, | 53 }, |
| 52 exceptions: { | 54 exceptions: { |
| 53 auto_downloads: [], | 55 auto_downloads: [], |
| 54 background_sync: [], | 56 background_sync: [], |
| 55 camera: [], | 57 camera: [], |
| 56 cookies: [], | 58 cookies: [], |
| 57 geolocation: [], | 59 geolocation: [], |
| 58 javascript: [], | 60 javascript: [], |
| 59 mic: [], | 61 mic: [], |
| 60 midiDevices: [], | 62 midiDevices: [], |
| 61 notifications: [], | 63 notifications: [], |
| 62 plugins: [], | 64 plugins: [], |
| 65 images: [], |
| 63 popups: [], | 66 popups: [], |
| 64 subresource_filter: [], | 67 subresource_filter: [], |
| 65 unsandboxed_plugins: [], | 68 unsandboxed_plugins: [], |
| 66 }, | 69 }, |
| 67 }; | 70 }; |
| 68 | 71 |
| 69 /** | 72 /** |
| 70 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods | 73 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods |
| 71 * for allowing tests to know when a method was called, as well as | 74 * for allowing tests to know when a method was called, as well as |
| 72 * specifying mock responses. | 75 * specifying mock responses. |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 /** @override */ | 375 /** @override */ |
| 373 removeProtocolHandler: function() { | 376 removeProtocolHandler: function() { |
| 374 this.methodCalled('removeProtocolHandler', arguments); | 377 this.methodCalled('removeProtocolHandler', arguments); |
| 375 }, | 378 }, |
| 376 | 379 |
| 377 /** @override */ | 380 /** @override */ |
| 378 updateIncognitoStatus: function() { | 381 updateIncognitoStatus: function() { |
| 379 this.methodCalled('updateIncognitoStatus', arguments); | 382 this.methodCalled('updateIncognitoStatus', arguments); |
| 380 } | 383 } |
| 381 }; | 384 }; |
| OLD | NEW |