| 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_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // BaseScreenHandler implementation: | 94 // BaseScreenHandler implementation: |
| 95 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 95 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; |
| 96 virtual void Initialize() override; | 96 virtual void Initialize() override; |
| 97 | 97 |
| 98 // WebUIMessageHandler implementation: | 98 // WebUIMessageHandler implementation: |
| 99 virtual void RegisterMessages() override; | 99 virtual void RegisterMessages() override; |
| 100 | 100 |
| 101 // WebUI message handlers. | 101 // WebUI message handlers. |
| 102 void HandleFrameLoadingCompleted(int status); | 102 void HandleFrameLoadingCompleted(int status); |
| 103 void HandleCompleteAuthentication(const std::string& email, | 103 void HandleCompleteAuthentication(const std::string& gaia_id, |
| 104 const std::string& email, |
| 104 const std::string& password, | 105 const std::string& password, |
| 105 const std::string& auth_code); | 106 const std::string& auth_code); |
| 106 void HandleCompleteLogin(const std::string& typed_email, | 107 void HandleCompleteLogin(const std::string& gaia_id, |
| 108 const std::string& typed_email, |
| 107 const std::string& password, | 109 const std::string& password, |
| 108 bool using_saml); | 110 bool using_saml); |
| 109 | 111 |
| 110 void HandleUsingSAMLAPI(); | 112 void HandleUsingSAMLAPI(); |
| 111 void HandleScrapedPasswordCount(int password_count); | 113 void HandleScrapedPasswordCount(int password_count); |
| 112 void HandleScrapedPasswordVerificationFailed(); | 114 void HandleScrapedPasswordVerificationFailed(); |
| 113 | 115 |
| 114 void HandleGaiaUIReady(); | 116 void HandleGaiaUIReady(); |
| 115 | 117 |
| 116 // This is called when ConsumerManagementService::SetOwner() returns. | 118 // This is called when ConsumerManagementService::SetOwner() returns. |
| 117 void OnSetOwnerDone(const std::string& typed_email, | 119 void OnSetOwnerDone(const std::string& gaia_id, |
| 120 const std::string& typed_email, |
| 118 const std::string& password, | 121 const std::string& password, |
| 119 bool using_saml, | 122 bool using_saml, |
| 120 bool success); | 123 bool success); |
| 121 | 124 |
| 122 // Really handles the complete login message. | 125 // Really handles the complete login message. |
| 123 void DoCompleteLogin(const std::string& typed_email, | 126 void DoCompleteLogin(const std::string& gaia_id, |
| 127 const std::string& typed_email, |
| 124 const std::string& password, | 128 const std::string& password, |
| 125 bool using_saml); | 129 bool using_saml); |
| 126 | 130 |
| 127 // Fill GAIA user name. | 131 // Fill GAIA user name. |
| 128 void PopulateEmail(const std::string& user_id); | 132 void PopulateEmail(const std::string& user_id); |
| 129 | 133 |
| 130 // Mark user as having password changed: | 134 // Mark user as having password changed: |
| 131 void PasswordChangedFor(const std::string& user_id); | 135 void PasswordChangedFor(const std::string& user_id); |
| 132 | 136 |
| 133 // Kick off cookie / local storage cleanup. | 137 // Kick off cookie / local storage cleanup. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 SigninScreenHandler* signin_screen_handler_; | 237 SigninScreenHandler* signin_screen_handler_; |
| 234 | 238 |
| 235 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 239 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 236 | 240 |
| 237 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 241 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 238 }; | 242 }; |
| 239 | 243 |
| 240 } // namespace chromeos | 244 } // namespace chromeos |
| 241 | 245 |
| 242 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 246 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |