blob: 97951bbe944a855505f5c03ca3cadd3c04480f8b [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2014 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="/extras/audits/chrome_process_helper.html">
<script>
'use strict';
/**
* @fileoverview Utilities for accessing trace data about the Chrome browser.
*/
tv.exportTo('tv.e.audits', function() {
function ChromeRendererHelper(modelHelper, process) {
tv.e.audits.ChromeProcessHelper.call(this, modelHelper, process);
var mains = process.findAllThreadsNamed(
tv.e.audits.CHROME_RENDERER_THREAD_NAME);
if (mains.length !== 1) throw new Error('omgah: more than one renderer!');
this.mainThread_ = mains[0];
}
ChromeRendererHelper.prototype = {
__proto__: tv.e.audits.ChromeProcessHelper.prototype,
get mainThread() {
return this.mainThread_;
}
};
return {
ChromeRendererHelper: ChromeRendererHelper
};
});
</script>