| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 this._bypassServiceWorkerSetting.addChangeListener(this._bypassServiceWorker
Changed, this); | 58 this._bypassServiceWorkerSetting.addChangeListener(this._bypassServiceWorker
Changed, this); |
| 59 | 59 |
| 60 Common.moduleSetting('cacheDisabled').addChangeListener(this._cacheDisabledS
ettingChanged, this); | 60 Common.moduleSetting('cacheDisabled').addChangeListener(this._cacheDisabledS
ettingChanged, this); |
| 61 } | 61 } |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * @param {!SDK.Target} target | 64 * @param {!SDK.Target} target |
| 65 * @return {?SDK.NetworkManager} | 65 * @return {?SDK.NetworkManager} |
| 66 */ | 66 */ |
| 67 static fromTarget(target) { | 67 static fromTarget(target) { |
| 68 return /** @type {?SDK.NetworkManager} */ (target.model(SDK.NetworkManager))
; | 68 return target.model(SDK.NetworkManager); |
| 69 } | 69 } |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * @param {!SDK.NetworkManager.Conditions} conditions | 72 * @param {!SDK.NetworkManager.Conditions} conditions |
| 73 * @return {!Protocol.Network.ConnectionType} | 73 * @return {!Protocol.Network.ConnectionType} |
| 74 * TODO(allada): this belongs to NetworkConditionsSelector, which should hardc
ode/guess it. | 74 * TODO(allada): this belongs to NetworkConditionsSelector, which should hardc
ode/guess it. |
| 75 */ | 75 */ |
| 76 static _connectionType(conditions) { | 76 static _connectionType(conditions) { |
| 77 if (!conditions.download && !conditions.upload) | 77 if (!conditions.download && !conditions.upload) |
| 78 return Protocol.Network.ConnectionType.None; | 78 return Protocol.Network.ConnectionType.None; |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 SDK.MultitargetNetworkManager.Events = { | 887 SDK.MultitargetNetworkManager.Events = { |
| 888 ConditionsChanged: Symbol('ConditionsChanged'), | 888 ConditionsChanged: Symbol('ConditionsChanged'), |
| 889 UserAgentChanged: Symbol('UserAgentChanged') | 889 UserAgentChanged: Symbol('UserAgentChanged') |
| 890 }; | 890 }; |
| 891 | 891 |
| 892 | 892 |
| 893 /** | 893 /** |
| 894 * @type {!SDK.MultitargetNetworkManager} | 894 * @type {!SDK.MultitargetNetworkManager} |
| 895 */ | 895 */ |
| 896 SDK.multitargetNetworkManager; | 896 SDK.multitargetNetworkManager; |
| OLD | NEW |