OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 | 12 |
13 class FilePath; | 13 class FilePath; |
14 | 14 |
15 class ProfileMetrics { | 15 class ProfileMetrics { |
16 public: | 16 public: |
17 enum ProfileAvatar { | |
18 AVATAR_GENERIC = 0, // The names for avatar icons | |
19 AVATAR_GENERIC_AQUA, | |
20 AVATAR_GENERIC_BLUE, | |
21 AVATAR_GENERIC_GREEN, | |
22 AVATAR_GENERIC_ORANGE, | |
23 AVATAR_GENERIC_PURPLE, | |
24 AVATAR_GENERIC_RED, | |
25 AVATAR_GENERIC_YELLOW, | |
26 AVATAR_SECRET_AGENT, | |
27 AVATAR_SUPERHERO, | |
28 AVATAR_VOLLEYBALL, | |
29 AVATAR_BUSINESSMAN, | |
30 AVATAR_NINJA, | |
31 AVATAR_ALIEN, | |
32 AVATAR_AWESOME, | |
33 AVATAR_FLOWER, | |
34 AVATAR_PIZZA, | |
35 AVATAR_SOCCER, | |
36 AVATAR_BURGER, | |
37 AVATAR_CAT, | |
38 AVATAR_CUPCAKE, | |
39 AVATAR_DOG, | |
40 AVATAR_HORSE, | |
41 AVATAR_MARGARITA, | |
42 AVATAR_NOTE, | |
43 AVATAR_SUN_CLOUD, | |
44 AVATAR_UNKNOWN, | |
45 NUM_PROFILE_AVATAR_METRICS | |
46 }; | |
47 | |
48 // Enum for counting the ways users were added. | 17 // Enum for counting the ways users were added. |
49 enum ProfileAdd { | 18 enum ProfileAdd { |
50 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu | 19 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu |
51 ADD_NEW_USER_MENU, // User adds new user from menu bar | 20 ADD_NEW_USER_MENU, // User adds new user from menu bar |
52 NUM_PROFILE_ADD_METRICS | 21 NUM_PROFILE_ADD_METRICS |
53 }; | 22 }; |
54 | 23 |
55 // Enum for counting the ways user profiles and menus were opened. | 24 // Enum for counting the ways user profiles and menus were opened. |
56 enum ProfileOpen { | 25 enum ProfileOpen { |
57 NTP_AVATAR_BUBBLE = 0, // User opens avatar icon menu from NTP | 26 NTP_AVATAR_BUBBLE = 0, // User opens avatar icon menu from NTP |
(...skipping 21 matching lines...) Expand all Loading... |
79 SYNC_PASSPHRASE, // User is using a passphrase | 48 SYNC_PASSPHRASE, // User is using a passphrase |
80 NUM_PROFILE_SYNC_METRICS | 49 NUM_PROFILE_SYNC_METRICS |
81 }; | 50 }; |
82 | 51 |
83 enum ProfileType { | 52 enum ProfileType { |
84 ORIGINAL = 0, // Refers to the original/default profile | 53 ORIGINAL = 0, // Refers to the original/default profile |
85 SECONDARY, // Refers to a user-created profile | 54 SECONDARY, // Refers to a user-created profile |
86 NUM_PROFILE_TYPE_METRICS | 55 NUM_PROFILE_TYPE_METRICS |
87 }; | 56 }; |
88 | 57 |
| 58 enum ProfileGaia { |
| 59 GAIA_OPT_IN = 0, // User changed to GAIA photo as avatar |
| 60 GAIA_OPT_OUT, // User changed to not use GAIA photo as avatar |
| 61 NUM_PROFILE_GAIA_METRICS |
| 62 }; |
| 63 |
89 static void LogProfileAvatarSelection(size_t icon_index); | 64 static void LogProfileAvatarSelection(size_t icon_index); |
90 static void LogProfileOpenMethod(ProfileOpen metric); | 65 static void LogProfileOpenMethod(ProfileOpen metric); |
91 static void LogProfileAddNewUser(ProfileAdd metric); | 66 static void LogProfileAddNewUser(ProfileAdd metric); |
92 static void LogProfileSwitchUser(ProfileOpen metric); | 67 static void LogProfileSwitchUser(ProfileOpen metric); |
93 static void LogProfileDeleteUser(ProfileNetUserCounts metric); | 68 static void LogProfileDeleteUser(ProfileNetUserCounts metric); |
94 static void LogProfileSyncInfo(ProfileSync metric); | 69 static void LogProfileSyncInfo(ProfileSync metric); |
95 static void LogProfileUpdate(FilePath& profile_path); | 70 static void LogProfileUpdate(FilePath& profile_path); |
96 static void LogProfileSyncSignIn(FilePath& profile_path); | 71 static void LogProfileSyncSignIn(FilePath& profile_path); |
| 72 static void LogProfileSwitchGaia(ProfileGaia metric); |
97 }; | 73 }; |
98 | 74 |
99 | 75 |
100 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 76 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |