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

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

Issue 1412813003: 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: Fix Win GN build. 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
20 namespace policy { 22 namespace policy {
21 class ConsumerManagementService; 23 class ConsumerManagementService;
22 } 24 }
23 25
24 namespace chromeos { 26 namespace chromeos {
25 27
26 class SigninScreenHandler; 28 class SigninScreenHandler;
27 class SigninScreenHandlerDelegate; 29 class SigninScreenHandlerDelegate;
28 30
29 // A class that's used to specify the way how Gaia should be loaded. 31 // 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
208 SigninScreenHandlerDelegate* Delegate(); 210 SigninScreenHandlerDelegate* Delegate();
209 211
210 // Returns temporary unused device Id. 212 // Returns temporary unused device Id.
211 std::string GetTemporaryDeviceId(); 213 std::string GetTemporaryDeviceId();
212 214
213 FrameState frame_state() const { return frame_state_; } 215 FrameState frame_state() const { return frame_state_; }
214 net::Error frame_error() const { return frame_error_; } 216 net::Error frame_error() const { return frame_error_; }
215 217
216 // Returns user canonical e-mail. Finds already used account alias, if 218 // Returns user canonical e-mail. Finds already used account alias, if
217 // user has already signed in. 219 // user has already signed in.
218 std::string GetCanonicalEmail(const std::string& authenticated_email, 220 AccountId GetAccountId(const std::string& authenticated_email,
219 const std::string& gaia_id) const; 221 const std::string& gaia_id) const;
220 222
221 // Returns current visible screen. 223 // Returns current visible screen.
222 // TODO(jdufault): This definition exists in multiple locations. Refactor it 224 // TODO(jdufault): This definition exists in multiple locations. Refactor it
223 // into BaseScreenHandler. 225 // into BaseScreenHandler.
224 OobeUI::Screen GetCurrentScreen() const; 226 OobeUI::Screen GetCurrentScreen() const;
225 227
226 // Current state of Gaia frame. 228 // Current state of Gaia frame.
227 FrameState frame_state_ = FRAME_STATE_UNKNOWN; 229 FrameState frame_state_ = FRAME_STATE_UNKNOWN;
228 230
229 // Latest Gaia frame error. 231 // Latest Gaia frame error.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 SigninScreenHandler* signin_screen_handler_ = nullptr; 290 SigninScreenHandler* signin_screen_handler_ = nullptr;
289 291
290 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 292 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
291 293
292 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 294 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
293 }; 295 };
294 296
295 } // namespace chromeos 297 } // namespace chromeos
296 298
297 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 299 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698