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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void Initialize() override; | 96 void Initialize() override; |
97 | 97 |
98 // WebUIMessageHandler implementation: | 98 // WebUIMessageHandler implementation: |
99 void RegisterMessages() override; | 99 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& gaia_id, | 103 void HandleCompleteAuthentication(const std::string& gaia_id, |
104 const std::string& email, | 104 const std::string& email, |
105 const std::string& password, | 105 const std::string& password, |
106 const std::string& auth_code); | 106 const std::string& auth_code, |
| 107 bool using_saml); |
107 void HandleCompleteAuthenticationAuthCodeOnly(const std::string& auth_code); | 108 void HandleCompleteAuthenticationAuthCodeOnly(const std::string& auth_code); |
108 void HandleCompleteLogin(const std::string& gaia_id, | 109 void HandleCompleteLogin(const std::string& gaia_id, |
109 const std::string& typed_email, | 110 const std::string& typed_email, |
110 const std::string& password, | 111 const std::string& password, |
111 bool using_saml); | 112 bool using_saml); |
112 | 113 |
113 void HandleUsingSAMLAPI(); | 114 void HandleUsingSAMLAPI(); |
114 void HandleScrapedPasswordCount(int password_count); | 115 void HandleScrapedPasswordCount(int password_count); |
115 void HandleScrapedPasswordVerificationFailed(); | 116 void HandleScrapedPasswordVerificationFailed(); |
116 | 117 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 255 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
255 | 256 |
256 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 257 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
257 | 258 |
258 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 259 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
259 }; | 260 }; |
260 | 261 |
261 } // namespace chromeos | 262 } // namespace chromeos |
262 | 263 |
263 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 264 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
OLD | NEW |