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

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

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 years, 10 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 if (this.redirectSource) { 1077 if (this.redirectSource) {
1078 type = WebInspector.NetworkRequest.InitiatorType.Redirect; 1078 type = WebInspector.NetworkRequest.InitiatorType.Redirect;
1079 url = this.redirectSource.url; 1079 url = this.redirectSource.url;
1080 } else if (initiator) { 1080 } else if (initiator) {
1081 if (initiator.type === NetworkAgent.InitiatorType.Parser) { 1081 if (initiator.type === NetworkAgent.InitiatorType.Parser) {
1082 type = WebInspector.NetworkRequest.InitiatorType.Parser; 1082 type = WebInspector.NetworkRequest.InitiatorType.Parser;
1083 url = initiator.url ? initiator.url : url; 1083 url = initiator.url ? initiator.url : url;
1084 lineNumber = initiator.lineNumber ? initiator.lineNumber : lineN umber; 1084 lineNumber = initiator.lineNumber ? initiator.lineNumber : lineN umber;
1085 } else if (initiator.type === NetworkAgent.InitiatorType.Script) { 1085 } else if (initiator.type === NetworkAgent.InitiatorType.Script) {
1086 var topFrame = initiator.stackTrace ? initiator.stackTrace[0] : null; 1086 var topFrame = initiator.stack && initiator.stack.callFrames.len gth ? initiator.stack.callFrames[0] : null;
1087 if (topFrame && topFrame.url) { 1087 if (topFrame && topFrame.url) {
1088 type = WebInspector.NetworkRequest.InitiatorType.Script; 1088 type = WebInspector.NetworkRequest.InitiatorType.Script;
1089 url = topFrame.url; 1089 url = topFrame.url;
1090 lineNumber = topFrame.lineNumber; 1090 lineNumber = topFrame.lineNumber;
1091 columnNumber = topFrame.columnNumber; 1091 columnNumber = topFrame.columnNumber;
1092 } 1092 }
1093 } 1093 }
1094 } 1094 }
1095 1095
1096 this._initiatorInfo = {type: type, url: url, lineNumber: lineNumber, col umnNumber: columnNumber}; 1096 this._initiatorInfo = {type: type, url: url, lineNumber: lineNumber, col umnNumber: columnNumber};
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message); 1181 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message);
1182 }, 1182 },
1183 1183
1184 replayXHR: function() 1184 replayXHR: function()
1185 { 1185 {
1186 this.target().networkAgent().replayXHR(this.requestId); 1186 this.target().networkAgent().replayXHR(this.requestId);
1187 }, 1187 },
1188 1188
1189 __proto__: WebInspector.SDKObject.prototype 1189 __proto__: WebInspector.SDKObject.prototype
1190 } 1190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698