Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 SDK.MobileThrottling = {}; | |
|
dgozman
2017/06/13 01:47:08
Move it back to NetworkManager.
chenwilliam
2017/06/13 21:54:52
It seemed bad to me that NetworkManager knows abou
dgozman
2017/06/13 23:18:39
Great idea, but move MobileThrottling.Conditions t
| |
| 6 | |
| 7 /** @typedef {{download: number, upload: number, latency: number, title: string, cpuThrottlingRate: number}} */ | |
| 8 SDK.MobileThrottling.Conditions; | |
| 9 | |
| 10 /** @type {!SDK.MobileThrottling.Conditions} */ | |
| 11 SDK.MobileThrottling.NoThrottlingConditions = { | |
| 12 title: Common.UIString('No throttling'), | |
| 13 download: -1, | |
| 14 upload: -1, | |
| 15 latency: 0, | |
| 16 cpuThrottlingRate: 1, | |
| 17 }; | |
| 18 | |
| 19 /** @type {!SDK.MobileThrottling.Conditions} */ | |
| 20 SDK.MobileThrottling.OfflineConditions = { | |
| 21 title: Common.UIString('Offline'), | |
| 22 download: 0, | |
| 23 upload: 0, | |
| 24 latency: 0, | |
| 25 cpuThrottlingRate: 1, | |
| 26 }; | |
| OLD | NEW |