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

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

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review Created 3 years, 8 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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h" 13 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h"
14 #include "chrome/browser/chromeos/login/screens/gaia_view.h" 14 #include "chrome/browser/chromeos/login/screens/gaia_view.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 "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 #include "third_party/cros_system_api/dbus/service_constants.h" 19 #include "third_party/cros_system_api/dbus/service_constants.h"
20 20
21 class AccountId; 21 class AccountId;
22 22
23 namespace authpolicy { 23 namespace authpolicy {
24 class ActiveDirectoryAccountData; 24 class ActiveDirectoryAccountData;
25 } 25 }
26 26
27 namespace chromeos { 27 namespace chromeos {
28 28
29 class AuthPolicyLoginHelper;
29 class Key; 30 class Key;
30 class SigninScreenHandler; 31 class SigninScreenHandler;
31 class SigninScreenHandlerDelegate; 32 class SigninScreenHandlerDelegate;
32 33
33 // A class that handles WebUI hooks in Gaia screen. 34 // A class that handles WebUI hooks in Gaia screen.
34 class GaiaScreenHandler : public BaseScreenHandler, 35 class GaiaScreenHandler : public BaseScreenHandler,
35 public GaiaView, 36 public GaiaView,
36 public NetworkPortalDetector::Observer { 37 public NetworkPortalDetector::Observer {
37 public: 38 public:
38 enum FrameState { 39 enum FrameState {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const std::string& password, 103 const std::string& password,
103 bool using_saml); 104 bool using_saml);
104 105
105 void HandleCompleteAdAuthentication(const std::string& username, 106 void HandleCompleteAdAuthentication(const std::string& username,
106 const std::string& password); 107 const std::string& password);
107 108
108 void HandleCompleteAdPasswordChange(const std::string& username, 109 void HandleCompleteAdPasswordChange(const std::string& username,
109 const std::string& old_password, 110 const std::string& old_password,
110 const std::string& new_password); 111 const std::string& new_password);
111 112
113 void HandleCancelActiveDirectoryAuth();
114
112 void HandleUsingSAMLAPI(); 115 void HandleUsingSAMLAPI();
113 void HandleScrapedPasswordCount(int password_count); 116 void HandleScrapedPasswordCount(int password_count);
114 void HandleScrapedPasswordVerificationFailed(); 117 void HandleScrapedPasswordVerificationFailed();
115 118
116 void HandleGaiaUIReady(); 119 void HandleGaiaUIReady();
117 120
118 void HandleToggleEasyBootstrap(); 121 void HandleToggleEasyBootstrap();
119 122
120 void HandleIdentifierEntered(const std::string& account_identifier); 123 void HandleIdentifierEntered(const std::string& account_identifier);
121 124
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // TODO (antrim@): GaiaScreenHandler shouldn't communicate with 271 // TODO (antrim@): GaiaScreenHandler shouldn't communicate with
269 // signin_screen_handler directly. 272 // signin_screen_handler directly.
270 SigninScreenHandler* signin_screen_handler_ = nullptr; 273 SigninScreenHandler* signin_screen_handler_ = nullptr;
271 274
272 // True if offline GAIA is active. 275 // True if offline GAIA is active.
273 bool offline_login_is_active_ = false; 276 bool offline_login_is_active_ = false;
274 277
275 // True if the authentication extension is still loading. 278 // True if the authentication extension is still loading.
276 bool auth_extension_being_loaded_ = false; 279 bool auth_extension_being_loaded_ = false;
277 280
281 // Helper to call AuthPolicyClient and cancel calls if needed. Used to
282 // authenticate users against Active Directory server.
283 std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_;
284
278 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 285 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
279 286
280 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 287 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
281 }; 288 };
282 289
283 } // namespace chromeos 290 } // namespace chromeos
284 291
285 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 292 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698