blob: 60a33c9086003798f5efc231a921e99315d0dfb3 [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<link rel="import" href="/base/base.html">
<link rel="import" href="/base/extension_registry.html">
<script>
'use strict';
/**
* @fileoverview Base class for auditors.
*/
tr.exportTo('tr.c', function() {
function Auditor(model) {
}
Auditor.prototype = {
__proto__: Object.prototype,
/**
* Called by the Model after baking slices. May modify model.
*/
runAnnotate: function() {
},
/**
* Called by the Model after importing. Should not modify model, except
* for adding interaction ranges and audits.
*/
runAudit: function() {
}
};
var options = new tr.b.ExtensionRegistryOptions(tr.b.BASIC_REGISTRY_MODE);
options.defaultMetadata = {};
options.mandatoryBaseClass = Auditor;
tr.b.decorateExtensionRegistry(Auditor, options);
return {
Auditor: Auditor
};
});
</script>