summaryrefslogtreecommitdiffstats
path: root/content/common/content_counters.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/content_counters.h')
-rw-r--r--content/common/content_counters.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/common/content_counters.h b/content/common/content_counters.h
new file mode 100644
index 0000000..16dc638
--- /dev/null
+++ b/content/common/content_counters.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 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.
+
+// Counters used within the browser.
+
+#ifndef CONTENT_COMMON_CONTENT_COUNTERS_H_
+#define CONTENT_COMMON_CONTENT_COUNTERS_H_
+#pragma once
+
+namespace base {
+class StatsCounter;
+class StatsCounterTimer;
+class StatsRate;
+}
+
+namespace content {
+
+class Counters {
+ public:
+ // The amount of time spent in chrome initialization.
+ static base::StatsCounterTimer& chrome_main();
+
+ // The amount of time spent in renderer initialization.
+ static base::StatsCounterTimer& renderer_main();
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_CONTENT_COUNTERS_H_