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

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

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 class FilePath; 28 class FilePath;
29 class ListValue; 29 class ListValue;
30 } 30 }
31 31
32 class UserManagerScreenHandler : public content::WebUIMessageHandler, 32 class UserManagerScreenHandler : public content::WebUIMessageHandler,
33 public ScreenlockBridge::LockHandler, 33 public ScreenlockBridge::LockHandler,
34 public GaiaAuthConsumer, 34 public GaiaAuthConsumer,
35 public content::NotificationObserver { 35 public content::NotificationObserver {
36 public: 36 public:
37 UserManagerScreenHandler(); 37 UserManagerScreenHandler();
38 virtual ~UserManagerScreenHandler(); 38 ~UserManagerScreenHandler() override;
39 39
40 // WebUIMessageHandler implementation. 40 // WebUIMessageHandler implementation.
41 virtual void RegisterMessages() override; 41 void RegisterMessages() override;
42 42
43 void GetLocalizedValues(base::DictionaryValue* localized_strings); 43 void GetLocalizedValues(base::DictionaryValue* localized_strings);
44 44
45 // content::NotificationObserver implementation: 45 // content::NotificationObserver implementation:
46 virtual void Observe(int type, 46 void Observe(int type,
47 const content::NotificationSource& source, 47 const content::NotificationSource& source,
48 const content::NotificationDetails& details) override; 48 const content::NotificationDetails& details) override;
49 49
50 // ScreenlockBridge::LockHandler implementation. 50 // ScreenlockBridge::LockHandler implementation.
51 virtual void ShowBannerMessage(const base::string16& message) override; 51 void ShowBannerMessage(const base::string16& message) override;
52 virtual void ShowUserPodCustomIcon( 52 void ShowUserPodCustomIcon(
53 const std::string& user_email, 53 const std::string& user_email,
54 const ScreenlockBridge::UserPodCustomIconOptions& icon_options) override; 54 const ScreenlockBridge::UserPodCustomIconOptions& icon_options) override;
55 virtual void HideUserPodCustomIcon(const std::string& user_email) override; 55 void HideUserPodCustomIcon(const std::string& user_email) override;
56 virtual void EnableInput() override; 56 void EnableInput() override;
57 virtual void SetAuthType(const std::string& user_email, 57 void SetAuthType(const std::string& user_email,
58 ScreenlockBridge::LockHandler::AuthType auth_type, 58 ScreenlockBridge::LockHandler::AuthType auth_type,
59 const base::string16& auth_value) override; 59 const base::string16& auth_value) override;
60 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( 60 ScreenlockBridge::LockHandler::AuthType GetAuthType(
61 const std::string& user_email) const override; 61 const std::string& user_email) const override;
62 virtual void Unlock(const std::string& user_email) override; 62 void Unlock(const std::string& user_email) override;
63 virtual void AttemptEasySignin(const std::string& user_email, 63 void AttemptEasySignin(const std::string& user_email,
64 const std::string& secret, 64 const std::string& secret,
65 const std::string& key_label) override; 65 const std::string& key_label) override;
66 66
67 private: 67 private:
68 // An observer for any changes to Profiles in the ProfileInfoCache so that 68 // An observer for any changes to Profiles in the ProfileInfoCache so that
69 // all the visible user manager screens can be updated. 69 // all the visible user manager screens can be updated.
70 class ProfileUpdateObserver; 70 class ProfileUpdateObserver;
71 71
72 void HandleInitialize(const base::ListValue* args); 72 void HandleInitialize(const base::ListValue* args);
73 void HandleAddUser(const base::ListValue* args); 73 void HandleAddUser(const base::ListValue* args);
74 void HandleAuthenticatedLaunchUser(const base::ListValue* args); 74 void HandleAuthenticatedLaunchUser(const base::ListValue* args);
75 void HandleLaunchGuest(const base::ListValue* args); 75 void HandleLaunchGuest(const base::ListValue* args);
76 void HandleLaunchUser(const base::ListValue* args); 76 void HandleLaunchUser(const base::ListValue* args);
77 void HandleRemoveUser(const base::ListValue* args); 77 void HandleRemoveUser(const base::ListValue* args);
78 void HandleAttemptUnlock(const base::ListValue* args); 78 void HandleAttemptUnlock(const base::ListValue* args);
79 void HandleHardlockUserPod(const base::ListValue* args); 79 void HandleHardlockUserPod(const base::ListValue* args);
80 80
81 // Handle GAIA auth results. 81 // Handle GAIA auth results.
82 virtual void OnClientLoginSuccess(const ClientLoginResult& result) override; 82 void OnClientLoginSuccess(const ClientLoginResult& result) override;
83 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) 83 void OnClientLoginFailure(const GoogleServiceAuthError& error) override;
84 override;
85 84
86 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event. 85 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event.
87 void OnBrowserWindowReady(Browser* browser); 86 void OnBrowserWindowReady(Browser* browser);
88 87
89 // Sends user list to account chooser. 88 // Sends user list to account chooser.
90 void SendUserList(); 89 void SendUserList();
91 90
92 // Pass success/failure information back to the web page. 91 // Pass success/failure information back to the web page.
93 void ReportAuthenticationResult(bool success, 92 void ReportAuthenticationResult(bool success,
94 ProfileMetrics::ProfileAuth metric); 93 ProfileMetrics::ProfileAuth metric);
(...skipping 26 matching lines...) Expand all
121 UserAuthTypeMap user_auth_type_map_; 120 UserAuthTypeMap user_auth_type_map_;
122 121
123 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; 122 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_;
124 123
125 content::NotificationRegistrar registrar_; 124 content::NotificationRegistrar registrar_;
126 125
127 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 126 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
128 }; 127 };
129 128
130 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 129 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698