| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 { | 136 { |
| 137 return request.resourceType().isTextType() && request.parsedURL.host &&
request.resourceSize !== undefined && request.resourceSize > 150; | 137 return request.resourceType().isTextType() && request.parsedURL.host &&
request.resourceSize !== undefined && request.resourceSize > 150; |
| 138 }, | 138 }, |
| 139 | 139 |
| 140 __proto__: WebInspector.AuditRule.prototype | 140 __proto__: WebInspector.AuditRule.prototype |
| 141 } | 141 } |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * @constructor | 144 * @constructor |
| 145 * @extends {WebInspector.AuditRule} | 145 * @extends {WebInspector.AuditRule} |
| 146 * @param {string} id |
| 147 * @param {string} name |
| 148 * @param {!WebInspector.ResourceType} type |
| 149 * @param {string} resourceTypeName |
| 150 * @param {boolean} allowedPerDomain |
| 146 */ | 151 */ |
| 147 WebInspector.AuditRules.CombineExternalResourcesRule = function(id, name, type,
resourceTypeName, allowedPerDomain) | 152 WebInspector.AuditRules.CombineExternalResourcesRule = function(id, name, type,
resourceTypeName, allowedPerDomain) |
| 148 { | 153 { |
| 149 WebInspector.AuditRule.call(this, id, name); | 154 WebInspector.AuditRule.call(this, id, name); |
| 150 this._type = type; | 155 this._type = type; |
| 151 this._resourceTypeName = resourceTypeName; | 156 this._resourceTypeName = resourceTypeName; |
| 152 this._allowedPerDomain = allowedPerDomain; | 157 this._allowedPerDomain = allowedPerDomain; |
| 153 } | 158 } |
| 154 | 159 |
| 155 WebInspector.AuditRules.CombineExternalResourcesRule.prototype = { | 160 WebInspector.AuditRules.CombineExternalResourcesRule.prototype = { |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 result.violationCount = badUrls.length; | 1597 result.violationCount = badUrls.length; |
| 1593 }, | 1598 }, |
| 1594 | 1599 |
| 1595 _collectorCallback: function(matchingResourceData, request, cookie) | 1600 _collectorCallback: function(matchingResourceData, request, cookie) |
| 1596 { | 1601 { |
| 1597 matchingResourceData[request.url] = (matchingResourceData[request.url] |
| 0) + cookie.size(); | 1602 matchingResourceData[request.url] = (matchingResourceData[request.url] |
| 0) + cookie.size(); |
| 1598 }, | 1603 }, |
| 1599 | 1604 |
| 1600 __proto__: WebInspector.AuditRules.CookieRuleBase.prototype | 1605 __proto__: WebInspector.AuditRules.CookieRuleBase.prototype |
| 1601 } | 1606 } |
| OLD | NEW |