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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js

Issue 2758673002: [DevTools] Extract NetworkLog and HAREntry to a separate network_log module (Closed)
Patch Set: rebased Created 3 years, 9 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 /** @type {number} */ 429 /** @type {number} */
430 this.column = column || 0; 430 this.column = column || 0;
431 this.parameters = parameters; 431 this.parameters = parameters;
432 /** @type {!Protocol.Runtime.StackTrace|undefined} */ 432 /** @type {!Protocol.Runtime.StackTrace|undefined} */
433 this.stackTrace = stackTrace; 433 this.stackTrace = stackTrace;
434 this.timestamp = timestamp || Date.now(); 434 this.timestamp = timestamp || Date.now();
435 this.executionContextId = executionContextId || 0; 435 this.executionContextId = executionContextId || 0;
436 this.scriptId = scriptId || null; 436 this.scriptId = scriptId || null;
437 this.workerId = workerId || null; 437 this.workerId = workerId || null;
438 438
439 this.request = (target && requestId) ? SDK.networkLog.requestForId(target, r equestId) : null; 439 this.request = (target && requestId) ? NetworkLog.networkLog.requestForId(ta rget, requestId) : null;
440 440
441 if (this.request) { 441 if (this.request) {
442 var initiator = this.request.initiator(); 442 var initiator = this.request.initiator();
443 if (initiator) { 443 if (initiator) {
444 this.stackTrace = initiator.stack || undefined; 444 this.stackTrace = initiator.stack || undefined;
445 if (initiator.url) { 445 if (initiator.url) {
446 this.url = initiator.url; 446 this.url = initiator.url;
447 this.line = initiator.lineNumber || 0; 447 this.line = initiator.lineNumber || 0;
448 } 448 }
449 } 449 }
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 return 2; 664 return 2;
665 return 3; 665 return 3;
666 }; 666 };
667 667
668 ConsoleModel.ConsoleModel._events = Symbol('ConsoleModel.ConsoleModel.events'); 668 ConsoleModel.ConsoleModel._events = Symbol('ConsoleModel.ConsoleModel.events');
669 669
670 /** 670 /**
671 * @type {!ConsoleModel.ConsoleModel} 671 * @type {!ConsoleModel.ConsoleModel}
672 */ 672 */
673 ConsoleModel.consoleModel; 673 ConsoleModel.consoleModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698