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

Unified Diff: content/public/renderer/all_rendering_benchmarks.h

Issue 10537036: Added rendering benchmark javascript hook (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: renaming Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/all_rendering_benchmarks.h
diff --git a/content/public/renderer/all_rendering_benchmarks.h b/content/public/renderer/all_rendering_benchmarks.h
new file mode 100644
index 0000000000000000000000000000000000000000..95b6f3889b13032134f750afe928e6f1df50557d
--- /dev/null
+++ b/content/public/renderer/all_rendering_benchmarks.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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.
+
+#ifndef CONTENT_PUBLIC_RENDERER_ALL_RENDERING_BENCHMARKS_H_
+#define CONTENT_PUBLIC_RENDERER_ALL_RENDERING_BENCHMARKS_H_
+
+#include <string>
+
+#include "base/basictypes.h"
nduca 2012/07/18 06:06:17 why?
dmurph 2012/07/18 20:01:57 DISALLOW_COPY_AND_ASSIGN, which I'm adding
+#include "base/compiler_specific.h"
nduca 2012/07/18 06:06:17 why?
dmurph 2012/07/18 16:31:41 for OVERRIDE
+#include "content/common/content_export.h"
nduca 2012/07/18 06:06:17 why?
dmurph 2012/07/18 20:01:57 Done.
+#include "content/public/renderer/rendering_benchmark.h"
+#include "content/public/renderer/rendering_benchmark_results.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewBenchmarkSupport.h"
+
nduca 2012/07/18 06:06:17 Include only when you need it. You can predeclare
dmurph 2012/07/18 16:31:41 Yeah, I forgot to clean these up, sorry
+namespace content {
+class CONTENT_EXPORT AllRenderingBenchmarks : public RenderingBenchmark {
nduca 2012/07/18 06:06:17 Why oh why another subclass? Why not just return a
dmurph 2012/07/18 20:01:57 Is it cool if we do getter-style of 'benchmarks()'
+ public:
+ AllRenderingBenchmarks(RenderingBenchmarkResults* results,
+ const std::string& name_filter);
+ virtual ~AllRenderingBenchmarks();
+
+ virtual void Run(WebKit::WebViewBenchmarkSupport*) OVERRIDE;
+
+ private:
+ const std::string name_filter_;
+ RenderingBenchmark** benchmarks_;
nduca 2012/07/18 06:06:17 Eep! scoped_vector is your friend. But as I pointe
dmurph 2012/07/18 16:31:41 Yeah I know
+ const int benchmark_count_;
nduca 2012/07/18 06:06:17 You're too obsessive about const. Please, save us
dmurph 2012/07/18 20:01:57 Done.
+};
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_ALL_RENDERING_BENCHMARKS_H_

Powered by Google App Engine
This is Rietveld 408576698