Index: chrome/browser/jumplist_metrics.h |
diff --git a/chrome/browser/jumplist_metrics.h b/chrome/browser/jumplist_metrics.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5a9f43c2ddebb20b61c440187104fd77ed2e2910 |
--- /dev/null |
+++ b/chrome/browser/jumplist_metrics.h |
@@ -0,0 +1,29 @@ |
+// Copyright 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. |
+ |
+#ifndef CHROME_BROWSER_JUMPLIST_METRICS_H_ |
tapted
2014/11/10 23:47:41
this might be better in a subfolder of chrome/brow
noms (inactive)
2014/11/12 19:04:11
I'm an owner of profiles :)
The reason why I didn'
|
+#define CHROME_BROWSER_JUMPLIST_METRICS_H_ |
+ |
+#include <string> |
+ |
+class JumplistMetrics { |
tapted
2014/11/10 23:47:41
nit: needs a comment, or (probably better) drop th
noms (inactive)
2014/11/12 19:04:11
Done. I've added a namespace. I hope that's not wo
|
+ public: |
+ // Enum for counting which category was clicked. |
+ enum JumplistCategory { |
+ RECENTLY_CLOSED_URL = 0, // A URL from the "Recently Closed" category. |
+ MOST_VISITED_URL, // A URL from the "Most Visited" category. |
+ SWITCH_TO_PROFILE, // A profile name from the "People" category. |
+ CATEGORY_UNKNOWN, // An invalid category. |
+ NUM_JUMPLIST_CATEGORY_METRICS |
+ }; |
+ |
+ // Category types that can be logged with the --win-jumplist-action switch. |
+ static const char kMostVisitedCategory[]; |
+ static const char kProfilesCategory[]; |
+ static const char kRecentlyClosedCategory[]; |
+ |
+ static void LogJumplistActionFromSwitchValue(const std::string& value); |
+}; |
+ |
+#endif // CHROME_BROWSER_JUMPLIST_METRICS_H_ |