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

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

Issue 2109813003: [DevTools] No NetworkManager and NetworkLog for v8only mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing code review comments Created 4 years, 5 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 "text/html": {"document": true}, 74 "text/html": {"document": true},
75 "text/xml": {"document": true}, 75 "text/xml": {"document": true},
76 "text/plain": {"document": true}, 76 "text/plain": {"document": true},
77 "application/xhtml+xml": {"document": true}, 77 "application/xhtml+xml": {"document": true},
78 "image/svg+xml": {"document": true}, 78 "image/svg+xml": {"document": true},
79 "text/css": {"stylesheet": true}, 79 "text/css": {"stylesheet": true},
80 "text/xsl": {"stylesheet": true}, 80 "text/xsl": {"stylesheet": true},
81 "text/vtt": {"texttrack": true}, 81 "text/vtt": {"texttrack": true},
82 } 82 }
83 83
84 /**
85 * @param {!WebInspector.Target} target
86 * @return {?WebInspector.NetworkManager}
87 */
88 WebInspector.NetworkManager.fromTarget = function(target)
89 {
90 return /** @type {?WebInspector.NetworkManager} */ (target.model(WebInspecto r.NetworkManager));
91 }
92
84 /** @typedef {{download: number, upload: number, latency: number, title: string} } */ 93 /** @typedef {{download: number, upload: number, latency: number, title: string} } */
85 WebInspector.NetworkManager.Conditions; 94 WebInspector.NetworkManager.Conditions;
86 /** @type {!WebInspector.NetworkManager.Conditions} */ 95 /** @type {!WebInspector.NetworkManager.Conditions} */
87 WebInspector.NetworkManager.NoThrottlingConditions = {title: WebInspector.UIStri ng("No throttling"), download: -1, upload: -1, latency: 0}; 96 WebInspector.NetworkManager.NoThrottlingConditions = {title: WebInspector.UIStri ng("No throttling"), download: -1, upload: -1, latency: 0};
88 /** @type {!WebInspector.NetworkManager.Conditions} */ 97 /** @type {!WebInspector.NetworkManager.Conditions} */
89 WebInspector.NetworkManager.OfflineConditions = {title: WebInspector.UIString("O ffline"), download: 0, upload: 0, latency: 0}; 98 WebInspector.NetworkManager.OfflineConditions = {title: WebInspector.UIString("O ffline"), download: 0, upload: 0, latency: 0};
90 99
91 /** 100 /**
92 * @param {!WebInspector.NetworkManager.Conditions} conditions 101 * @param {!WebInspector.NetworkManager.Conditions} conditions
93 * @return {!NetworkAgent.ConnectionType} 102 * @return {!NetworkAgent.ConnectionType}
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 WebInspector.ResourceLoader.load(url, headers, callback); 943 WebInspector.ResourceLoader.load(url, headers, callback);
935 }, 944 },
936 945
937 __proto__: WebInspector.Object.prototype 946 __proto__: WebInspector.Object.prototype
938 } 947 }
939 948
940 /** 949 /**
941 * @type {!WebInspector.MultitargetNetworkManager} 950 * @type {!WebInspector.MultitargetNetworkManager}
942 */ 951 */
943 WebInspector.multitargetNetworkManager; 952 WebInspector.multitargetNetworkManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698