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

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

Issue 2841103002: Chromad: Add GetUserStatus call into AuthPolicyClient (Closed)
Patch Set: Fix test build Created 3 years, 7 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 | « no previous file | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.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 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 ActiveDirectoryAccountInfo;
25 } 25 }
26 26
27 namespace chromeos { 27 namespace chromeos {
28 28
29 class AuthPolicyLoginHelper; 29 class AuthPolicyLoginHelper;
30 class Key; 30 class Key;
31 class SigninScreenHandler; 31 class SigninScreenHandler;
32 class SigninScreenHandlerDelegate; 32 class SigninScreenHandlerDelegate;
33 33
34 // A class that handles WebUI hooks in Gaia screen. 34 // A class that handles WebUI hooks in Gaia screen.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void OnCookiesCleared(const base::Closure& on_clear_callback); 140 void OnCookiesCleared(const base::Closure& on_clear_callback);
141 141
142 // Kick off DNS cache flushing. 142 // Kick off DNS cache flushing.
143 void StartClearingDnsCache(); 143 void StartClearingDnsCache();
144 void OnDnsCleared(); 144 void OnDnsCleared();
145 145
146 // Callback for AuthPolicyClient. 146 // Callback for AuthPolicyClient.
147 void DoAdAuth(const std::string& username, 147 void DoAdAuth(const std::string& username,
148 const Key& key, 148 const Key& key,
149 authpolicy::ErrorType error, 149 authpolicy::ErrorType error,
150 const authpolicy::ActiveDirectoryAccountData& account_data); 150 const authpolicy::ActiveDirectoryAccountInfo& account_info);
151 151
152 // Callback for writing password into pipe. 152 // Callback for writing password into pipe.
153 void OnPasswordPipeReady(const std::string& username, 153 void OnPasswordPipeReady(const std::string& username,
154 const Key& key, 154 const Key& key,
155 base::ScopedFD password_fd); 155 base::ScopedFD password_fd);
156 156
157 // Show sign-in screen for the given credentials. 157 // Show sign-in screen for the given credentials.
158 void ShowSigninScreenForTest(const std::string& username, 158 void ShowSigninScreenForTest(const std::string& username,
159 const std::string& password); 159 const std::string& password);
160 // Attempts login for test. 160 // Attempts login for test.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_; 283 std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_;
284 284
285 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 285 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
286 286
287 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 287 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
288 }; 288 };
289 289
290 } // namespace chromeos 290 } // namespace chromeos
291 291
292 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 292 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698