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

Side by Side Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 485713002: DevTools: Use targetManager.inspectedPageUrl() instead of resourceTreeModel.inspectedPageUrl() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addrss comments Created 6 years, 4 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
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 /** 1231 /**
1232 * @param {!WebInspector.NetworkRequest} request 1232 * @param {!WebInspector.NetworkRequest} request
1233 */ 1233 */
1234 _copyCurlCommand: function(request) 1234 _copyCurlCommand: function(request)
1235 { 1235 {
1236 InspectorFrontendHost.copyText(this._generateCurlCommand(request)); 1236 InspectorFrontendHost.copyText(this._generateCurlCommand(request));
1237 }, 1237 },
1238 1238
1239 _exportAll: function() 1239 _exportAll: function()
1240 { 1240 {
1241 var filename = WebInspector.resourceTreeModel.inspectedPageDomain() + ". har"; 1241 var filename = WebInspector.targetManager.inspectedPageDomain() + ".har" ;
1242 var stream = new WebInspector.FileOutputStream(); 1242 var stream = new WebInspector.FileOutputStream();
1243 stream.open(filename, openCallback.bind(this)); 1243 stream.open(filename, openCallback.bind(this));
1244 1244
1245 /** 1245 /**
1246 * @param {boolean} accepted 1246 * @param {boolean} accepted
1247 * @this {WebInspector.NetworkLogView} 1247 * @this {WebInspector.NetworkLogView}
1248 */ 1248 */
1249 function openCallback(accepted) 1249 function openCallback(accepted)
1250 { 1250 {
1251 if (!accepted) 1251 if (!accepted)
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
3027 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b) 3027 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b)
3028 { 3028 {
3029 var aValue = a._request[propertyName]; 3029 var aValue = a._request[propertyName];
3030 var bValue = b._request[propertyName]; 3030 var bValue = b._request[propertyName];
3031 if (aValue > bValue) 3031 if (aValue > bValue)
3032 return revert ? -1 : 1; 3032 return revert ? -1 : 1;
3033 if (bValue > aValue) 3033 if (bValue > aValue)
3034 return revert ? 1 : -1; 3034 return revert ? 1 : -1;
3035 return a._request.indentityCompare(b._request); 3035 return a._request.indentityCompare(b._request);
3036 } 3036 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698