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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.h

Issue 132453004: Add Profile metric counting to new User Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed minor formatting comments Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/profiles/profile_metrics.h"
10 #include "chrome/browser/ui/host_desktop.h" 11 #include "chrome/browser/ui/host_desktop.h"
11 #include "content/public/browser/web_ui_message_handler.h" 12 #include "content/public/browser/web_ui_message_handler.h"
12 #include "google_apis/gaia/gaia_auth_consumer.h" 13 #include "google_apis/gaia/gaia_auth_consumer.h"
13 14
14 class GaiaAuthFetcher; 15 class GaiaAuthFetcher;
15 16
16 namespace base { 17 namespace base {
17 class DictionaryValue; 18 class DictionaryValue;
18 class FilePath; 19 class FilePath;
19 class ListValue; 20 class ListValue;
(...skipping 24 matching lines...) Expand all
44 45
45 // Handle GAIA auth results. 46 // Handle GAIA auth results.
46 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; 47 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
47 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) 48 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error)
48 OVERRIDE; 49 OVERRIDE;
49 50
50 // Sends user list to account chooser. 51 // Sends user list to account chooser.
51 void SendUserList(); 52 void SendUserList();
52 53
53 // Pass success/failure information back to the web page. 54 // Pass success/failure information back to the web page.
54 void ReportAuthenticationResult(bool success); 55 void ReportAuthenticationResult(bool success,
56 ProfileMetrics::ProfileAuth metric);
55 57
56 // Observes the ProfileInfoCache and gets notified when a profile has been 58 // Observes the ProfileInfoCache and gets notified when a profile has been
57 // modified, so that the displayed user pods can be updated. 59 // modified, so that the displayed user pods can be updated.
58 scoped_ptr<ProfileUpdateObserver> profileInfoCacheObserver_; 60 scoped_ptr<ProfileUpdateObserver> profileInfoCacheObserver_;
59 61
60 // The host desktop type this user manager belongs to. 62 // The host desktop type this user manager belongs to.
61 chrome::HostDesktopType desktop_type_; 63 chrome::HostDesktopType desktop_type_;
62 64
63 // Authenticator used when local-auth fails. 65 // Authenticator used when local-auth fails.
64 scoped_ptr<GaiaAuthFetcher> client_login_; 66 scoped_ptr<GaiaAuthFetcher> client_login_;
65 67
66 // The index of the profile currently being authenticated. 68 // The index of the profile currently being authenticated.
67 size_t authenticating_profile_index_; 69 size_t authenticating_profile_index_;
68 70
69 // Login password, held during on-line auth for saving later if correct. 71 // Login password, held during on-line auth for saving later if correct.
70 std::string password_attempt_; 72 std::string password_attempt_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 74 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
73 }; 75 };
74 76
75 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 77 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698