Fix build break
[chromium-blink-merge.git] / content / renderer / rendering_benchmark.h
blob44b5a84d79acab6a3789cc14edf2a49d7a18bf0b
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDERING_BENCHMARK_H_
6 #define CONTENT_RENDERER_RENDERING_BENCHMARK_H_
8 #include <string>
10 #include "base/basictypes.h"
12 namespace WebKit {
13 class WebViewBenchmarkSupport;
16 namespace content {
17 class RenderingBenchmarkResults;
19 class RenderingBenchmark {
20 public:
21 explicit RenderingBenchmark(const std::string& name);
22 virtual ~RenderingBenchmark();
24 virtual void SetUp(WebKit::WebViewBenchmarkSupport* benchmarkSupport) {}
26 virtual double Run(WebKit::WebViewBenchmarkSupport* benchmarkSupport) = 0;
28 virtual void TearDown(WebKit::WebViewBenchmarkSupport* benchmarkSupport) {}
30 const std::string& name() { return name_; }
32 private:
33 const std::string name_;
35 DISALLOW_COPY_AND_ASSIGN(RenderingBenchmark);
37 } // namespace content
39 #endif // CONTENT_RENDERER_RENDERING_BENCHMARK_H_