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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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('networkBlockedURLs'); | 690 this._blockedSetting = Common.moduleSetting('networkBlockedURLs'); |
691 this._blockedSetting.addChangeListener(this._updateBlockedURLs, this); | 691 this._blockedSetting.addChangeListener(this._updateBlockedURLs, this); |
692 this._blockedSetting.set([]); | |
693 this._updateBlockedURLs(); | 692 this._updateBlockedURLs(); |
694 | 693 |
695 this._userAgentOverride = ''; | 694 this._userAgentOverride = ''; |
696 /** @type {!Set<!Protocol.NetworkAgent>} */ | 695 /** @type {!Set<!Protocol.NetworkAgent>} */ |
697 this._agents = new Set(); | 696 this._agents = new Set(); |
698 /** @type {!SDK.NetworkManager.Conditions} */ | 697 /** @type {!SDK.NetworkManager.Conditions} */ |
699 this._networkConditions = SDK.NetworkManager.NoThrottlingConditions; | 698 this._networkConditions = SDK.NetworkManager.NoThrottlingConditions; |
700 | 699 |
701 SDK.targetManager.observeTargets(this, SDK.Target.Capability.Network); | 700 SDK.targetManager.observeTargets(this, SDK.Target.Capability.Network); |
702 } | 701 } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 SDK.MultitargetNetworkManager.Events = { | 913 SDK.MultitargetNetworkManager.Events = { |
915 ConditionsChanged: Symbol('ConditionsChanged'), | 914 ConditionsChanged: Symbol('ConditionsChanged'), |
916 UserAgentChanged: Symbol('UserAgentChanged') | 915 UserAgentChanged: Symbol('UserAgentChanged') |
917 }; | 916 }; |
918 | 917 |
919 | 918 |
920 /** | 919 /** |
921 * @type {!SDK.MultitargetNetworkManager} | 920 * @type {!SDK.MultitargetNetworkManager} |
922 */ | 921 */ |
923 SDK.multitargetNetworkManager; | 922 SDK.multitargetNetworkManager; |
OLD | NEW |