15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * Copyright (C) 2014 Google Inc. All rights reserved. 3521d96ec04ace82590870fb04353ec4f82bb150fTorne (Richard Coles) * 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Redistribution and use in source and binary forms, with or without 581a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * modification, are permitted provided that the following conditions are 681a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * met: 7521d96ec04ace82590870fb04353ec4f82bb150fTorne (Richard Coles) * 8e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * 1. Redistributions of source code must retain the above copyright 981a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * notice, this list of conditions and the following disclaimer. 10e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * 11e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * 2. Redistributions in binary form must reproduce the above 1281a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * copyright notice, this list of conditions and the following disclaimer 1381a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * in the documentation and/or other materials provided with the 1481a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * distribution. 15521d96ec04ace82590870fb04353ec4f82bb150fTorne (Richard Coles) * 16e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS 1781a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1881a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE INC. 20e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2181a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2281a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2381a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2481a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2681a5157921f1d2a7ff6aae115bfe3c139b38a5c8Torne (Richard Coles) * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 29e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)/** 3009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @interface 31e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles) */ 3209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)WebInspector.AuditCategory = function() 33e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles){ 34e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)} 350019e4eead4d990e4304c54a9028aca9122fb256Ben Murdoch 3609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)WebInspector.AuditCategory.prototype = { 3709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) /** 3809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @return {string} 3909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) */ 4009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) get id() 4109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) { 4209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) }, 4309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) 4409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) /** 4509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @return {string} 4609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) */ 4709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) get displayName() 4809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) { 4909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) }, 5009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) 5109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) /** 52aafa69cb17c9d6606c07663ade5f81388a2c5986Ben Murdoch * @param {!WebInspector.Target} target 5309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @param {!Array.<!WebInspector.NetworkRequest>} requests 54aafa69cb17c9d6606c07663ade5f81388a2c5986Ben Murdoch * @param {function(!WebInspector.AuditRuleResult)} ruleResultCallback 5509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @param {function()} categoryDoneCallback 5609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * @param {!WebInspector.Progress} progress 5709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) */ 58aafa69cb17c9d6606c07663ade5f81388a2c5986Ben Murdoch run: function(target, requests, ruleResultCallback, categoryDoneCallback, progress) 5909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) { 6009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) } 61e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)} 62