Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 446 /** @type {number} */ | 446 /** @type {number} */ |
| 447 this.column = column || 0; | 447 this.column = column || 0; |
| 448 this.parameters = parameters; | 448 this.parameters = parameters; |
| 449 /** @type {!Protocol.Runtime.StackTrace|undefined} */ | 449 /** @type {!Protocol.Runtime.StackTrace|undefined} */ |
| 450 this.stackTrace = stackTrace; | 450 this.stackTrace = stackTrace; |
| 451 this.timestamp = timestamp || Date.now(); | 451 this.timestamp = timestamp || Date.now(); |
| 452 this.executionContextId = executionContextId || 0; | 452 this.executionContextId = executionContextId || 0; |
| 453 this.scriptId = scriptId || null; | 453 this.scriptId = scriptId || null; |
| 454 this.workerId = workerId || null; | 454 this.workerId = workerId || null; |
| 455 | 455 |
| 456 this.request = (target && requestId) ? NetworkLog.networkLog.requestForId(ta rget, requestId) : null; | 456 var networkManager = (target && requestId) ? target.model(SDK.NetworkManager ) : null; |
|
pfeldman
2017/04/07 18:36:03
ditto
| |
| 457 this.request = (networkManager && requestId) ? NetworkLog.networkLog.request ForId(networkManager, requestId) : null; | |
| 457 | 458 |
| 458 if (this.request) { | 459 if (this.request) { |
| 459 var initiator = this.request.initiator(); | 460 var initiator = this.request.initiator(); |
| 460 if (initiator) { | 461 if (initiator) { |
| 461 this.stackTrace = initiator.stack || undefined; | 462 this.stackTrace = initiator.stack || undefined; |
| 462 if (initiator.url) { | 463 if (initiator.url) { |
| 463 this.url = initiator.url; | 464 this.url = initiator.url; |
| 464 this.line = initiator.lineNumber || 0; | 465 this.line = initiator.lineNumber || 0; |
| 465 } | 466 } |
| 466 } | 467 } |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 return 2; | 683 return 2; |
| 683 return 3; | 684 return 3; |
| 684 }; | 685 }; |
| 685 | 686 |
| 686 ConsoleModel.ConsoleModel._events = Symbol('ConsoleModel.ConsoleModel.events'); | 687 ConsoleModel.ConsoleModel._events = Symbol('ConsoleModel.ConsoleModel.events'); |
| 687 | 688 |
| 688 /** | 689 /** |
| 689 * @type {!ConsoleModel.ConsoleModel} | 690 * @type {!ConsoleModel.ConsoleModel} |
| 690 */ | 691 */ |
| 691 ConsoleModel.consoleModel; | 692 ConsoleModel.consoleModel; |
| OLD | NEW |