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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2758963002: [DevTools] Remove dependency from TargetManager to ResourceTreeModel (Closed)
Patch Set: 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 this._invalidateAllItems(); 723 this._invalidateAllItems();
724 } 724 }
725 725
726 /** 726 /**
727 * @param {!Common.Event} event 727 * @param {!Common.Event} event
728 */ 728 */
729 _loadEventFired(event) { 729 _loadEventFired(event) {
730 if (!this._recording) 730 if (!this._recording)
731 return; 731 return;
732 732
733 var data = /** @type {number} */ (event.data); 733 var time = /** @type {number} */ (event.data.loadTime);
734 if (data) { 734 if (time) {
735 this._mainRequestLoadTime = data; 735 this._mainRequestLoadTime = time;
736 this._columns.addEventDividers([data], 'network-red-divider'); 736 this._columns.addEventDividers([time], 'network-red-divider');
737 } 737 }
738 } 738 }
739 739
740 /** 740 /**
741 * @param {!Common.Event} event 741 * @param {!Common.Event} event
742 */ 742 */
743 _domContentLoadedEventFired(event) { 743 _domContentLoadedEventFired(event) {
744 if (!this._recording) 744 if (!this._recording)
745 return; 745 return;
746 var data = /** @type {number} */ (event.data); 746 var data = /** @type {number} */ (event.data);
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 */ 1792 */
1793 Network.NetworkGroupLookupInterface = function() {}; 1793 Network.NetworkGroupLookupInterface = function() {};
1794 1794
1795 Network.NetworkGroupLookupInterface.prototype = { 1795 Network.NetworkGroupLookupInterface.prototype = {
1796 /** 1796 /**
1797 * @param {!SDK.NetworkRequest} request 1797 * @param {!SDK.NetworkRequest} request
1798 * @return {?string} 1798 * @return {?string}
1799 */ 1799 */
1800 lookup(request) {} 1800 lookup(request) {}
1801 }; 1801 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698