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

Side by Side Diff: Source/devtools/front_end/audits/AuditRules.js

Issue 634383004: DevTools: add JsDocs to CombineExternalResourcesRule constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698