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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h

Issue 671183002: Revert of Inline sign in extracts gaia id from HTTP header and seeds account tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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_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
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& gaia_id, 103 void HandleCompleteAuthentication(const std::string& email,
104 const std::string& email,
105 const std::string& password, 104 const std::string& password,
106 const std::string& auth_code); 105 const std::string& auth_code);
107 void HandleCompleteLogin(const std::string& gaia_id, 106 void HandleCompleteLogin(const std::string& typed_email,
108 const std::string& typed_email,
109 const std::string& password, 107 const std::string& password,
110 bool using_saml); 108 bool using_saml);
111 109
112 void HandleUsingSAMLAPI(); 110 void HandleUsingSAMLAPI();
113 void HandleScrapedPasswordCount(int password_count); 111 void HandleScrapedPasswordCount(int password_count);
114 void HandleScrapedPasswordVerificationFailed(); 112 void HandleScrapedPasswordVerificationFailed();
115 113
116 void HandleGaiaUIReady(); 114 void HandleGaiaUIReady();
117 115
118 // This is called when ConsumerManagementService::SetOwner() returns. 116 // This is called when ConsumerManagementService::SetOwner() returns.
119 void OnSetOwnerDone(const std::string& gaia_id, 117 void OnSetOwnerDone(const std::string& typed_email,
120 const std::string& typed_email,
121 const std::string& password, 118 const std::string& password,
122 bool using_saml, 119 bool using_saml,
123 bool success); 120 bool success);
124 121
125 // Really handles the complete login message. 122 // Really handles the complete login message.
126 void DoCompleteLogin(const std::string& gaia_id, 123 void DoCompleteLogin(const std::string& typed_email,
127 const std::string& typed_email,
128 const std::string& password, 124 const std::string& password,
129 bool using_saml); 125 bool using_saml);
130 126
131 // Fill GAIA user name. 127 // Fill GAIA user name.
132 void PopulateEmail(const std::string& user_id); 128 void PopulateEmail(const std::string& user_id);
133 129
134 // Mark user as having password changed: 130 // Mark user as having password changed:
135 void PasswordChangedFor(const std::string& user_id); 131 void PasswordChangedFor(const std::string& user_id);
136 132
137 // Kick off cookie / local storage cleanup. 133 // Kick off cookie / local storage cleanup.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 SigninScreenHandler* signin_screen_handler_; 233 SigninScreenHandler* signin_screen_handler_;
238 234
239 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 235 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
240 236
241 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 237 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
242 }; 238 };
243 239
244 } // namespace chromeos 240 } // namespace chromeos
245 241
246 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 242 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698