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

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

Issue 289013002: cros: Clean up screenlockPrivate plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 <map> 8 #include <map>
9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/profiles/profile_metrics.h" 14 #include "chrome/browser/profiles/profile_metrics.h"
14 #include "chrome/browser/signin/screenlock_bridge.h" 15 #include "chrome/browser/signin/screenlock_bridge.h"
15 #include "chrome/browser/ui/host_desktop.h" 16 #include "chrome/browser/ui/host_desktop.h"
16 #include "content/public/browser/web_ui_message_handler.h" 17 #include "content/public/browser/web_ui_message_handler.h"
17 #include "google_apis/gaia/gaia_auth_consumer.h" 18 #include "google_apis/gaia/gaia_auth_consumer.h"
18 19
(...skipping 12 matching lines...) Expand all
31 UserManagerScreenHandler(); 32 UserManagerScreenHandler();
32 virtual ~UserManagerScreenHandler(); 33 virtual ~UserManagerScreenHandler();
33 34
34 // WebUIMessageHandler implementation. 35 // WebUIMessageHandler implementation.
35 virtual void RegisterMessages() OVERRIDE; 36 virtual void RegisterMessages() OVERRIDE;
36 37
37 void GetLocalizedValues(base::DictionaryValue* localized_strings); 38 void GetLocalizedValues(base::DictionaryValue* localized_strings);
38 39
39 // ScreenlockBridge::LockHandler implementation. 40 // ScreenlockBridge::LockHandler implementation.
40 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; 41 virtual void ShowBannerMessage(const std::string& message) OVERRIDE;
41 virtual void ShowUserPodButton(const std::string& user_email, 42 virtual void ShowUserPodCustomIcon(const std::string& user_email,
42 const gfx::Image& icon, 43 const gfx::Image& icon) OVERRIDE;
43 const base::Closure& callback) OVERRIDE; 44 virtual void HideUserPodCustomIcon(const std::string& user_email) OVERRIDE;
44 virtual void HideUserPodButton(const std::string& user_email) OVERRIDE;
45 virtual void EnableInput() OVERRIDE; 45 virtual void EnableInput() OVERRIDE;
46 virtual void SetAuthType(const std::string& user_email, 46 virtual void SetAuthType(const std::string& user_email,
47 ScreenlockBridge::LockHandler::AuthType auth_type, 47 ScreenlockBridge::LockHandler::AuthType auth_type,
48 const std::string& auth_value) OVERRIDE; 48 const std::string& auth_value) OVERRIDE;
49 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( 49 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType(
50 const std::string& user_email) const OVERRIDE; 50 const std::string& user_email) const OVERRIDE;
51 virtual void Unlock(const std::string& user_email) OVERRIDE; 51 virtual void Unlock(const std::string& user_email) OVERRIDE;
52 52
53 private: 53 private:
54 // An observer for any changes to Profiles in the ProfileInfoCache so that 54 // An observer for any changes to Profiles in the ProfileInfoCache so that
55 // all the visible user manager screens can be updated. 55 // all the visible user manager screens can be updated.
56 class ProfileUpdateObserver; 56 class ProfileUpdateObserver;
57 57
58 void HandleInitialize(const base::ListValue* args); 58 void HandleInitialize(const base::ListValue* args);
59 void HandleAddUser(const base::ListValue* args); 59 void HandleAddUser(const base::ListValue* args);
60 void HandleAuthenticatedLaunchUser(const base::ListValue* args); 60 void HandleAuthenticatedLaunchUser(const base::ListValue* args);
61 void HandleLaunchGuest(const base::ListValue* args); 61 void HandleLaunchGuest(const base::ListValue* args);
62 void HandleLaunchUser(const base::ListValue* args); 62 void HandleLaunchUser(const base::ListValue* args);
63 void HandleRemoveUser(const base::ListValue* args); 63 void HandleRemoveUser(const base::ListValue* args);
64 void HandleCustomButtonClicked(const base::ListValue* args);
65 void HandleAttemptUnlock(const base::ListValue* args); 64 void HandleAttemptUnlock(const base::ListValue* args);
66 65
67 // Handle GAIA auth results. 66 // Handle GAIA auth results.
68 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; 67 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
69 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) 68 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error)
70 OVERRIDE; 69 OVERRIDE;
71 70
72 // Sends user list to account chooser. 71 // Sends user list to account chooser.
73 void SendUserList(); 72 void SendUserList();
74 73
(...skipping 18 matching lines...) Expand all
93 std::string password_attempt_; 92 std::string password_attempt_;
94 93
95 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType> 94 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType>
96 UserAuthTypeMap; 95 UserAuthTypeMap;
97 UserAuthTypeMap user_auth_type_map_; 96 UserAuthTypeMap user_auth_type_map_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 98 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
100 }; 99 };
101 100
102 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 101 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698