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

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

Issue 1897463002: [DevTools] Add sorting to all tabs in network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 this._sortingFunctions.cookies = WebInspector.NetworkDataGridNode.Reques tCookiesCountComparator; 633 this._sortingFunctions.cookies = WebInspector.NetworkDataGridNode.Reques tCookiesCountComparator;
634 this._sortingFunctions.setCookies = WebInspector.NetworkDataGridNode.Res ponseCookiesCountComparator; 634 this._sortingFunctions.setCookies = WebInspector.NetworkDataGridNode.Res ponseCookiesCountComparator;
635 this._sortingFunctions.size = WebInspector.NetworkDataGridNode.SizeCompa rator; 635 this._sortingFunctions.size = WebInspector.NetworkDataGridNode.SizeCompa rator;
636 this._sortingFunctions.time = WebInspector.NetworkDataGridNode.RequestPr opertyComparator.bind(null, "duration", false); 636 this._sortingFunctions.time = WebInspector.NetworkDataGridNode.RequestPr opertyComparator.bind(null, "duration", false);
637 this._sortingFunctions.connectionId = WebInspector.NetworkDataGridNode.R equestPropertyComparator.bind(null, "connectionId", false); 637 this._sortingFunctions.connectionId = WebInspector.NetworkDataGridNode.R equestPropertyComparator.bind(null, "connectionId", false);
638 this._sortingFunctions.priority = WebInspector.NetworkDataGridNode.Initi alPriorityComparator; 638 this._sortingFunctions.priority = WebInspector.NetworkDataGridNode.Initi alPriorityComparator;
639 this._sortingFunctions.timeline = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "startTime", false); 639 this._sortingFunctions.timeline = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "startTime", false);
640 this._sortingFunctions.startTime = WebInspector.NetworkDataGridNode.Requ estPropertyComparator.bind(null, "startTime", false); 640 this._sortingFunctions.startTime = WebInspector.NetworkDataGridNode.Requ estPropertyComparator.bind(null, "startTime", false);
641 this._sortingFunctions.endTime = WebInspector.NetworkDataGridNode.Reques tPropertyComparator.bind(null, "endTime", false); 641 this._sortingFunctions.endTime = WebInspector.NetworkDataGridNode.Reques tPropertyComparator.bind(null, "endTime", false);
642 this._sortingFunctions.responseTime = WebInspector.NetworkDataGridNode.R equestPropertyComparator.bind(null, "responseReceivedTime", false); 642 this._sortingFunctions.responseTime = WebInspector.NetworkDataGridNode.R equestPropertyComparator.bind(null, "responseReceivedTime", false);
643 this._sortingFunctions.duration = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "duration", true); 643 this._sortingFunctions.duration = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "duration", false);
caseq 2016/04/15 21:30:00 if you're doing this, we could as well nuke revert
allada 2016/04/15 22:57:11 Done.
644 this._sortingFunctions.latency = WebInspector.NetworkDataGridNode.Reques tPropertyComparator.bind(null, "latency", true); 644 this._sortingFunctions.latency = WebInspector.NetworkDataGridNode.Reques tPropertyComparator.bind(null, "latency", false);
645
646 this._sortingFunctions["Cache-Control"] = WebInspector.NetworkDataGridNo de.ResponseHeaderStringComparator.bind(null, "Cache-Control", false);
647 this._sortingFunctions["Connection"] = WebInspector.NetworkDataGridNode. ResponseHeaderStringComparator.bind(null, "Connection", false);
648 this._sortingFunctions["Content-Encoding"] = WebInspector.NetworkDataGri dNode.ResponseHeaderStringComparator.bind(null, "Content-Encoding", false);
649 this._sortingFunctions["Content-Length"] = WebInspector.NetworkDataGridN ode.ResponseHeaderNumberComparator.bind(null, "Content-Length", false);
650 this._sortingFunctions["ETag"] = WebInspector.NetworkDataGridNode.Respon seHeaderStringComparator.bind(null, "ETag", false);
651 this._sortingFunctions["Keep-Alive"] = WebInspector.NetworkDataGridNode. ResponseHeaderStringComparator.bind(null, "Keep-Alive", false);
652 this._sortingFunctions["Last-Modified"] = WebInspector.NetworkDataGridNo de.ResponseHeaderDateComparator.bind(null, "Last-Modified", false);
653 this._sortingFunctions["Server"] = WebInspector.NetworkDataGridNode.Resp onseHeaderStringComparator.bind(null, "Server", false);
654 this._sortingFunctions["Vary"] = WebInspector.NetworkDataGridNode.Respon seHeaderStringComparator.bind(null, "Vary", false);
645 }, 655 },
646 656
647 _createCalculators: function() 657 _createCalculators: function()
648 { 658 {
649 /** @type {!WebInspector.NetworkTransferTimeCalculator} */ 659 /** @type {!WebInspector.NetworkTransferTimeCalculator} */
650 this._timeCalculator = new WebInspector.NetworkTransferTimeCalculator(); 660 this._timeCalculator = new WebInspector.NetworkTransferTimeCalculator();
651 /** @type {!WebInspector.NetworkTransferDurationCalculator} */ 661 /** @type {!WebInspector.NetworkTransferDurationCalculator} */
652 this._durationCalculator = new WebInspector.NetworkTransferDurationCalcu lator(); 662 this._durationCalculator = new WebInspector.NetworkTransferDurationCalcu lator();
653 663
654 /** @type {!Object.<string, !WebInspector.NetworkTimeCalculator>} */ 664 /** @type {!Object.<string, !WebInspector.NetworkTimeCalculator>} */
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 return false; 2183 return false;
2174 return true; 2184 return true;
2175 } 2185 }
2176 2186
2177 WebInspector.NetworkLogView.EventTypes = { 2187 WebInspector.NetworkLogView.EventTypes = {
2178 RequestSelected: "RequestSelected", 2188 RequestSelected: "RequestSelected",
2179 SearchCountUpdated: "SearchCountUpdated", 2189 SearchCountUpdated: "SearchCountUpdated",
2180 SearchIndexUpdated: "SearchIndexUpdated", 2190 SearchIndexUpdated: "SearchIndexUpdated",
2181 UpdateRequest: "UpdateRequest" 2191 UpdateRequest: "UpdateRequest"
2182 }; 2192 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698