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

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

Issue 1425093004: Revert of This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Created 5 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
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"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" 13 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h"
14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 15 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
17 #include "chromeos/network/portal_detector/network_portal_detector.h" 17 #include "chromeos/network/portal_detector/network_portal_detector.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 19
20 class AccountId;
21
22 namespace policy { 20 namespace policy {
23 class ConsumerManagementService; 21 class ConsumerManagementService;
24 } 22 }
25 23
26 namespace chromeos { 24 namespace chromeos {
27 25
28 class SigninScreenHandler; 26 class SigninScreenHandler;
29 class SigninScreenHandlerDelegate; 27 class SigninScreenHandlerDelegate;
30 28
31 // A class that's used to specify the way how Gaia should be loaded. 29 // A class that's used to specify the way how Gaia should be loaded.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 SigninScreenHandlerDelegate* Delegate(); 208 SigninScreenHandlerDelegate* Delegate();
211 209
212 // Returns temporary unused device Id. 210 // Returns temporary unused device Id.
213 std::string GetTemporaryDeviceId(); 211 std::string GetTemporaryDeviceId();
214 212
215 FrameState frame_state() const { return frame_state_; } 213 FrameState frame_state() const { return frame_state_; }
216 net::Error frame_error() const { return frame_error_; } 214 net::Error frame_error() const { return frame_error_; }
217 215
218 // Returns user canonical e-mail. Finds already used account alias, if 216 // Returns user canonical e-mail. Finds already used account alias, if
219 // user has already signed in. 217 // user has already signed in.
220 AccountId GetAccountId(const std::string& authenticated_email, 218 std::string GetCanonicalEmail(const std::string& authenticated_email,
221 const std::string& gaia_id) const; 219 const std::string& gaia_id) const;
222 220
223 // Returns current visible screen. 221 // Returns current visible screen.
224 // TODO(jdufault): This definition exists in multiple locations. Refactor it 222 // TODO(jdufault): This definition exists in multiple locations. Refactor it
225 // into BaseScreenHandler. 223 // into BaseScreenHandler.
226 OobeUI::Screen GetCurrentScreen() const; 224 OobeUI::Screen GetCurrentScreen() const;
227 225
228 // Current state of Gaia frame. 226 // Current state of Gaia frame.
229 FrameState frame_state_ = FRAME_STATE_UNKNOWN; 227 FrameState frame_state_ = FRAME_STATE_UNKNOWN;
230 228
231 // Latest Gaia frame error. 229 // Latest Gaia frame error.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 SigninScreenHandler* signin_screen_handler_ = nullptr; 288 SigninScreenHandler* signin_screen_handler_ = nullptr;
291 289
292 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 290 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
293 291
294 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 292 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
295 }; 293 };
296 294
297 } // namespace chromeos 295 } // namespace chromeos
298 296
299 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 297 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698