Chromium Code Reviews| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 virtual void Initialize() OVERRIDE; | 78 virtual void Initialize() OVERRIDE; |
| 79 | 79 |
| 80 // WebUIMessageHandler implementation: | 80 // WebUIMessageHandler implementation: |
| 81 virtual void RegisterMessages() OVERRIDE; | 81 virtual void RegisterMessages() OVERRIDE; |
| 82 | 82 |
| 83 // WebUI message handlers. | 83 // WebUI message handlers. |
| 84 void HandleFrameLoadingCompleted(int status); | 84 void HandleFrameLoadingCompleted(int status); |
| 85 void HandleCompleteAuthentication(const std::string& email, | 85 void HandleCompleteAuthentication(const std::string& email, |
| 86 const std::string& password, | 86 const std::string& password, |
| 87 const std::string& auth_code); | 87 const std::string& auth_code); |
| 88 | |
|
bartfab (slow)
2014/08/04 18:44:56
I understand why you added the blank line here and
davidyu
2014/08/05 07:27:00
Done.
| |
| 88 void HandleCompleteLogin(const std::string& typed_email, | 89 void HandleCompleteLogin(const std::string& typed_email, |
| 89 const std::string& password, | 90 const std::string& password, |
| 90 bool using_saml); | 91 bool using_saml); |
| 92 void OnSetOwnerDone(const std::string& typed_email, | |
|
bartfab (slow)
2014/08/04 18:44:56
Nit: #include <string>
davidyu
2014/08/05 07:27:00
Done.
| |
| 93 const std::string& password, | |
| 94 bool using_saml, | |
| 95 bool result); | |
|
bartfab (slow)
2014/08/04 18:44:56
Nit: |result| is unclear. Better call this |succes
davidyu
2014/08/05 07:27:00
Done.
| |
| 96 void DoCompleteLogin(const std::string& typed_email, | |
| 97 const std::string& password, | |
| 98 bool using_saml); | |
| 91 | 99 |
| 92 void HandleUsingSAMLAPI(); | 100 void HandleUsingSAMLAPI(); |
| 93 void HandleScrapedPasswordCount(int password_count); | 101 void HandleScrapedPasswordCount(int password_count); |
| 94 void HandleScrapedPasswordVerificationFailed(); | 102 void HandleScrapedPasswordVerificationFailed(); |
| 95 | 103 |
| 96 void HandleGaiaUIReady(); | 104 void HandleGaiaUIReady(); |
| 97 | 105 |
| 98 // Fill GAIA user name. | 106 // Fill GAIA user name. |
| 99 void PopulateEmail(const std::string& user_id); | 107 void PopulateEmail(const std::string& user_id); |
| 100 | 108 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 SigninScreenHandler* signin_screen_handler_; | 204 SigninScreenHandler* signin_screen_handler_; |
| 197 | 205 |
| 198 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 206 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 199 | 207 |
| 200 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 208 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 201 }; | 209 }; |
| 202 | 210 |
| 203 } // namespace chromeos | 211 } // namespace chromeos |
| 204 | 212 |
| 205 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 213 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |