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

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

Issue 872633008: Migrate (Network)ErrorScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 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
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/extensions/signin/scoped_gaia_auth_extension.h" 14 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
15 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 15 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
16 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 16 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 18
19 namespace policy { 19 namespace policy {
20 class ConsumerManagementService; 20 class ConsumerManagementService;
21 } 21 }
22 22
23 namespace chromeos { 23 namespace chromeos {
24 24
25 class SigninScreenHandler; 25 class SigninScreenHandler;
26 class SigninScreenHandlerDelegate;
26 27
27 // A class that's used to specify the way how Gaia should be loaded. 28 // A class that's used to specify the way how Gaia should be loaded.
28 struct GaiaContext { 29 struct GaiaContext {
29 GaiaContext(); 30 GaiaContext();
30 31
31 // Forces Gaia to reload. 32 // Forces Gaia to reload.
32 bool force_reload; 33 bool force_reload;
33 34
34 // Whether local verison of Gaia is used. 35 // Whether local verison of Gaia is used.
35 bool is_local; 36 bool is_local;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 181
181 // Tells webui to load authentication extension. |force| is used to force the 182 // Tells webui to load authentication extension. |force| is used to force the
182 // extension reloading, if it has already been loaded. |silent_load| is true 183 // extension reloading, if it has already been loaded. |silent_load| is true
183 // for cases when extension should be loaded in the background and it 184 // for cases when extension should be loaded in the background and it
184 // shouldn't grab the focus. |offline| is true when offline version of the 185 // shouldn't grab the focus. |offline| is true when offline version of the
185 // extension should be used. 186 // extension should be used.
186 void LoadAuthExtension(bool force, bool silent_load, bool offline); 187 void LoadAuthExtension(bool force, bool silent_load, bool offline);
187 188
188 // TODO (ygorshenin@): GaiaScreenHandler should implement 189 // TODO (ygorshenin@): GaiaScreenHandler should implement
189 // NetworkStateInformer::Observer. 190 // NetworkStateInformer::Observer.
190 void UpdateState(ErrorScreenActor::ErrorReason reason); 191 void UpdateState(NetworkError::ErrorReason reason);
191 192
192 // TODO (ygorshenin@): remove this dependency. 193 // TODO (ygorshenin@): remove this dependency.
193 void SetSigninScreenHandler(SigninScreenHandler* handler); 194 void SetSigninScreenHandler(SigninScreenHandler* handler);
194 195
195 SigninScreenHandlerDelegate* Delegate(); 196 SigninScreenHandlerDelegate* Delegate();
196 197
197 // Current state of Gaia frame. 198 // Current state of Gaia frame.
198 FrameState frame_state_; 199 FrameState frame_state_;
199 200
200 // Latest Gaia frame error. 201 // Latest Gaia frame error.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; 262 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_;
262 263
263 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 264 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
264 265
265 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 266 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
266 }; 267 };
267 268
268 } // namespace chromeos 269 } // namespace chromeos
269 270
270 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 271 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698