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

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: Rebased. Created 5 years, 2 months 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 "chromeos/network/portal_detector/network_portal_detector.h" 16 #include "chromeos/network/portal_detector/network_portal_detector.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 18
19 class AccountId;
20
19 namespace policy { 21 namespace policy {
20 class ConsumerManagementService; 22 class ConsumerManagementService;
21 } 23 }
22 24
23 namespace chromeos { 25 namespace chromeos {
24 26
25 class SigninScreenHandler; 27 class SigninScreenHandler;
26 class SigninScreenHandlerDelegate; 28 class SigninScreenHandlerDelegate;
27 29
28 // A class that's used to specify the way how Gaia should be loaded. 30 // A class that's used to specify the way how Gaia should be loaded.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 SigninScreenHandlerDelegate* Delegate(); 211 SigninScreenHandlerDelegate* Delegate();
210 212
211 // Returns temporary unused device Id. 213 // Returns temporary unused device Id.
212 std::string GetTemporaryDeviceId(); 214 std::string GetTemporaryDeviceId();
213 215
214 FrameState frame_state() const { return frame_state_; } 216 FrameState frame_state() const { return frame_state_; }
215 net::Error frame_error() const { return frame_error_; } 217 net::Error frame_error() const { return frame_error_; }
216 218
217 // Returns user canonical e-mail. Finds already used account alias, if 219 // Returns user canonical e-mail. Finds already used account alias, if
218 // user has already signed in. 220 // user has already signed in.
219 std::string GetCanonicalEmail(const std::string& authenticated_email, 221 AccountId GetAccountId(const std::string& authenticated_email,
220 const std::string& gaia_id) const; 222 const std::string& gaia_id) const;
221 223
222 // Current state of Gaia frame. 224 // Current state of Gaia frame.
223 FrameState frame_state_ = FRAME_STATE_UNKNOWN; 225 FrameState frame_state_ = FRAME_STATE_UNKNOWN;
224 226
225 // Latest Gaia frame error. 227 // Latest Gaia frame error.
226 net::Error frame_error_ = net::OK; 228 net::Error frame_error_ = net::OK;
227 229
228 // Network state informer used to keep signin screen up. 230 // Network state informer used to keep signin screen up.
229 scoped_refptr<NetworkStateInformer> network_state_informer_; 231 scoped_refptr<NetworkStateInformer> network_state_informer_;
230 232
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 SigninScreenHandler* signin_screen_handler_ = nullptr; 286 SigninScreenHandler* signin_screen_handler_ = nullptr;
285 287
286 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 288 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
287 289
288 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 290 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
289 }; 291 };
290 292
291 } // namespace chromeos 293 } // namespace chromeos
292 294
293 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 295 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698