| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 /** | 680 /** |
| 681 * @implements {SDK.TargetManager.Observer} | 681 * @implements {SDK.TargetManager.Observer} |
| 682 * @unrestricted | 682 * @unrestricted |
| 683 */ | 683 */ |
| 684 SDK.MultitargetNetworkManager = class extends Common.Object { | 684 SDK.MultitargetNetworkManager = class extends Common.Object { |
| 685 constructor() { | 685 constructor() { |
| 686 super(); | 686 super(); |
| 687 | 687 |
| 688 /** @type {!Set<string>} */ | 688 /** @type {!Set<string>} */ |
| 689 this._blockedURLs = new Set(); | 689 this._blockedURLs = new Set(); |
| 690 this._blockedSetting = Common.moduleSetting('blockedURLs'); | 690 this._blockedSetting = Common.moduleSetting('networkBlockedURLs'); |
| 691 this._blockedSetting.addChangeListener(this._updateBlockedURLs, this); | 691 this._blockedSetting.addChangeListener(this._updateBlockedURLs, this); |
| 692 this._blockedSetting.set([]); | 692 this._blockedSetting.set([]); |
| 693 this._updateBlockedURLs(); | 693 this._updateBlockedURLs(); |
| 694 | 694 |
| 695 this._userAgentOverride = ''; | 695 this._userAgentOverride = ''; |
| 696 /** @type {!Set<!Protocol.NetworkAgent>} */ | 696 /** @type {!Set<!Protocol.NetworkAgent>} */ |
| 697 this._agents = new Set(); | 697 this._agents = new Set(); |
| 698 /** @type {!SDK.NetworkManager.Conditions} */ | 698 /** @type {!SDK.NetworkManager.Conditions} */ |
| 699 this._networkConditions = SDK.NetworkManager.NoThrottlingConditions; | 699 this._networkConditions = SDK.NetworkManager.NoThrottlingConditions; |
| 700 | 700 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 SDK.MultitargetNetworkManager.Events = { | 914 SDK.MultitargetNetworkManager.Events = { |
| 915 ConditionsChanged: Symbol('ConditionsChanged'), | 915 ConditionsChanged: Symbol('ConditionsChanged'), |
| 916 UserAgentChanged: Symbol('UserAgentChanged') | 916 UserAgentChanged: Symbol('UserAgentChanged') |
| 917 }; | 917 }; |
| 918 | 918 |
| 919 | 919 |
| 920 /** | 920 /** |
| 921 * @type {!SDK.MultitargetNetworkManager} | 921 * @type {!SDK.MultitargetNetworkManager} |
| 922 */ | 922 */ |
| 923 SDK.multitargetNetworkManager; | 923 SDK.multitargetNetworkManager; |
| OLD | NEW |