Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/MobileThrottling.js

Issue 2938503002: DevTools: unify Network & CPU throttling (Closed)
Patch Set: fmt Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698