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

Side by Side Diff: chrome/browser/chromeos/login/screens/gaia_screen.h

Issue 2710673003: cros: Remove usage of GaiaScreenHandler outside of login/webui. (Closed)
Patch Set: Initial upload Created 3 years, 10 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
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/screens/gaia_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class LoginDisplayWebUIHandler; 16 class GaiaView;
17 class GaiaScreenHandler;
18 17
19 // This class represents GAIA screen: login screen that is responsible for 18 // This class represents GAIA screen: login screen that is responsible for
20 // GAIA-based sign-in. 19 // GAIA-based sign-in.
21 class GaiaScreen { 20 class GaiaScreen {
22 public: 21 public:
23 GaiaScreen(); 22 GaiaScreen() = default;
24 virtual ~GaiaScreen(); 23 virtual ~GaiaScreen() = default;
25 void SetLegacyHandler(LoginDisplayWebUIHandler* handler); 24
26 void SetScreenHandler(GaiaScreenHandler* handler); 25 void set_view(GaiaView* view) { view_ = view; }
26
27 void MaybePreloadAuthExtension(); 27 void MaybePreloadAuthExtension();
28 28
29 private: 29 private:
30 LoginDisplayWebUIHandler* legacy_handler_; 30 GaiaView* view_ = nullptr;
31 GaiaScreenHandler* screen_handler_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(GaiaScreen); 32 DISALLOW_COPY_AND_ASSIGN(GaiaScreen);
34 }; 33 };
35 34
36 } // namespace chromeos 35 } // namespace chromeos
37 36
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/screens/gaia_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698