| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |