OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ProfileManager; |
| 14 |
| 15 namespace base { |
13 class FilePath; | 16 class FilePath; |
14 class ProfileManager; | 17 } |
15 | 18 |
16 class ProfileMetrics { | 19 class ProfileMetrics { |
17 public: | 20 public: |
18 // Enum for counting the ways users were added. | 21 // Enum for counting the ways users were added. |
19 enum ProfileAdd { | 22 enum ProfileAdd { |
20 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu | 23 ADD_NEW_USER_ICON = 0, // User adds new user from icon menu |
21 ADD_NEW_USER_MENU, // User adds new user from menu bar | 24 ADD_NEW_USER_MENU, // User adds new user from menu bar |
22 NUM_PROFILE_ADD_METRICS | 25 NUM_PROFILE_ADD_METRICS |
23 }; | 26 }; |
24 | 27 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 static void LogProfileAddNewUser(ProfileAdd metric); | 76 static void LogProfileAddNewUser(ProfileAdd metric); |
74 static void LogProfileAvatarSelection(size_t icon_index); | 77 static void LogProfileAvatarSelection(size_t icon_index); |
75 static void LogProfileDeleteUser(ProfileNetUserCounts metric); | 78 static void LogProfileDeleteUser(ProfileNetUserCounts metric); |
76 static void LogProfileOpenMethod(ProfileOpen metric); | 79 static void LogProfileOpenMethod(ProfileOpen metric); |
77 static void LogProfileSwitchGaia(ProfileGaia metric); | 80 static void LogProfileSwitchGaia(ProfileGaia metric); |
78 static void LogProfileSwitchUser(ProfileOpen metric); | 81 static void LogProfileSwitchUser(ProfileOpen metric); |
79 static void LogProfileSyncInfo(ProfileSync metric); | 82 static void LogProfileSyncInfo(ProfileSync metric); |
80 | 83 |
81 // These functions should only be called on the UI thread because they hook | 84 // These functions should only be called on the UI thread because they hook |
82 // into g_browser_process through a helper function. | 85 // into g_browser_process through a helper function. |
83 static void LogProfileLaunch(const FilePath& profile_path); | 86 static void LogProfileLaunch(const base::FilePath& profile_path); |
84 static void LogProfileSyncSignIn(const FilePath& profile_path); | 87 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
85 static void LogProfileUpdate(const FilePath& profile_path); | 88 static void LogProfileUpdate(const base::FilePath& profile_path); |
86 }; | 89 }; |
87 | 90 |
88 | 91 |
89 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 92 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
OLD | NEW |