OLD | NEW |
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 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/profiles/profile_metrics.h" | 16 #include "chrome/browser/profiles/profile_metrics.h" |
17 #include "chrome/browser/signin/screenlock_bridge.h" | |
18 #include "chrome/browser/ui/host_desktop.h" | 17 #include "chrome/browser/ui/host_desktop.h" |
| 18 #include "components/signin/content/screenlock_bridge.h" |
19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
21 #include "content/public/browser/web_ui_message_handler.h" | 21 #include "content/public/browser/web_ui_message_handler.h" |
22 #include "google_apis/gaia/gaia_auth_consumer.h" | 22 #include "google_apis/gaia/gaia_auth_consumer.h" |
23 | 23 |
24 class GaiaAuthFetcher; | 24 class GaiaAuthFetcher; |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class DictionaryValue; | 27 class DictionaryValue; |
28 class FilePath; | 28 class FilePath; |
(...skipping 23 matching lines...) Expand all Loading... |
52 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 void HideUserPodCustomIcon(const std::string& user_email) override; | 55 void HideUserPodCustomIcon(const std::string& user_email) override; |
56 void EnableInput() override; | 56 void EnableInput() override; |
57 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 AuthType GetAuthType(const std::string& user_email) const override; | 60 AuthType GetAuthType(const std::string& user_email) const override; |
61 ScreenType GetScreenType() const override; | 61 ScreenType GetScreenType() const override; |
| 62 void Lock(content::BrowserContext* browser_context) override; |
| 63 void Unlock(content::BrowserContext* browser_context) override; |
62 void Unlock(const std::string& user_email) override; | 64 void Unlock(const std::string& user_email) override; |
63 void AttemptEasySignin(const std::string& user_email, | 65 void AttemptEasySignin(const std::string& user_email, |
64 const std::string& secret, | 66 const std::string& secret, |
65 const std::string& key_label) override; | 67 const std::string& key_label) override; |
66 | 68 |
67 private: | 69 private: |
68 // An observer for any changes to Profiles in the ProfileInfoCache so that | 70 // An observer for any changes to Profiles in the ProfileInfoCache so that |
69 // all the visible user manager screens can be updated. | 71 // all the visible user manager screens can be updated. |
70 class ProfileUpdateObserver; | 72 class ProfileUpdateObserver; |
71 | 73 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 UserAuthTypeMap user_auth_type_map_; | 122 UserAuthTypeMap user_auth_type_map_; |
121 | 123 |
122 content::NotificationRegistrar registrar_; | 124 content::NotificationRegistrar registrar_; |
123 | 125 |
124 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; | 126 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); | 128 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); |
127 }; | 129 }; |
128 | 130 |
129 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 131 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
OLD | NEW |