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

Side by Side Diff: Source/devtools/front_end/sdk/ConsoleModel.js

Issue 416843002: DevTools: Send async stack trace with Network.Initiator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 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 | Annotate | Revision Log
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 this.stackTrace = stackTrace; 200 this.stackTrace = stackTrace;
201 this.timestamp = timestamp || Date.now(); 201 this.timestamp = timestamp || Date.now();
202 this.isOutdated = isOutdated; 202 this.isOutdated = isOutdated;
203 this.executionContextId = executionContextId || 0; 203 this.executionContextId = executionContextId || 0;
204 this.asyncStackTrace = asyncStackTrace; 204 this.asyncStackTrace = asyncStackTrace;
205 205
206 this.request = requestId ? target.networkLog.requestForId(requestId) : null; 206 this.request = requestId ? target.networkLog.requestForId(requestId) : null;
207 207
208 if (this.request) { 208 if (this.request) {
209 this.stackTrace = this.request.initiator.stackTrace; 209 this.stackTrace = this.request.initiator.stackTrace;
210 this.asyncStackTrace = this.request.initiator.asyncStackTrace;
210 if (this.request.initiator && this.request.initiator.url) { 211 if (this.request.initiator && this.request.initiator.url) {
211 this.url = this.request.initiator.url; 212 this.url = this.request.initiator.url;
212 this.line = this.request.initiator.lineNumber; 213 this.line = this.request.initiator.lineNumber;
213 } 214 }
214 this.asyncStackTrace = undefined;
215 } 215 }
216 } 216 }
217 217
218 WebInspector.ConsoleMessage.prototype = { 218 WebInspector.ConsoleMessage.prototype = {
219 /** 219 /**
220 * @return {?WebInspector.Target} 220 * @return {?WebInspector.Target}
221 */ 221 */
222 target: function() 222 target: function()
223 { 223 {
224 return this._target; 224 return this._target;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 535 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
536 }, 536 },
537 537
538 __proto__: WebInspector.Object.prototype 538 __proto__: WebInspector.Object.prototype
539 } 539 }
540 540
541 /** 541 /**
542 * @type {!WebInspector.MultitargetConsoleModel} 542 * @type {!WebInspector.MultitargetConsoleModel}
543 */ 543 */
544 WebInspector.multitargetConsoleModel; 544 WebInspector.multitargetConsoleModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/networkLogView.css ('k') | Source/devtools/front_end/sources/CallStackSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698