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

Unified Diff: content/public/renderer/rendering_benchmark_results.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/rendering_benchmark_results.h
diff --git a/content/public/renderer/rendering_benchmark_results.h b/content/public/renderer/rendering_benchmark_results.h
new file mode 100644
index 0000000000000000000000000000000000000000..d47d4774d278d7b2832a0c0a0c3e30580f7ee803
--- /dev/null
+++ b/content/public/renderer/rendering_benchmark_results.h
@@ -0,0 +1,22 @@
+// 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_RENDERING_BENCHMARK_RESULTS_H_
+#define CONTENT_PUBLIC_RENDERER_RENDERING_BENCHMARK_RESULTS_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+
+namespace content {
+class CONTENT_EXPORT RenderingBenchmarkResults {
nduca 2012/07/18 06:06:17 I'm not sure this abstraction is needed any more.
dmurph 2012/07/18 16:31:41 I agree, as long as you're fine with only one resu
dmurph 2012/07/18 20:01:57 Agreed on leaving abstraction for allowing multipl
+ public:
+ virtual ~RenderingBenchmarkResults() { }
+ virtual void addResult(const std::string& benchmark_name,
+ const std::string& result_name,
+ const std::string& time_unit,
+ double time) = 0;
+};
+}
+#endif // CONTENT_PUBLIC_RENDERER_RENDERING_BENCHMARK_RESULTS_H_

Powered by Google App Engine
This is Rietveld 408576698