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

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

Issue 2685793004: Chromad: Wire up displayName and givenName (Closed)
Patch Set: Combine SetDisplayName and SetGivenName into SetDisplayAndGiveName 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
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_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 #include "third_party/cros_system_api/dbus/service_constants.h" 18 #include "third_party/cros_system_api/dbus/service_constants.h"
19 19
20 class AccountId; 20 class AccountId;
21 21
22 namespace authpolicy {
23 class ActiveDirectoryAccountData;
24 }
25
22 namespace chromeos { 26 namespace chromeos {
23 27
24 class Key; 28 class Key;
25 class SigninScreenHandler; 29 class SigninScreenHandler;
26 class SigninScreenHandlerDelegate; 30 class SigninScreenHandlerDelegate;
27 31
28 // A class that handles WebUI hooks in Gaia screen. 32 // A class that handles WebUI hooks in Gaia screen.
29 class GaiaScreenHandler : public BaseScreenHandler, 33 class GaiaScreenHandler : public BaseScreenHandler,
30 public NetworkPortalDetector::Observer { 34 public NetworkPortalDetector::Observer {
31 public: 35 public:
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void OnCookiesCleared(const base::Closure& on_clear_callback); 137 void OnCookiesCleared(const base::Closure& on_clear_callback);
134 138
135 // Kick off DNS cache flushing. 139 // Kick off DNS cache flushing.
136 void StartClearingDnsCache(); 140 void StartClearingDnsCache();
137 void OnDnsCleared(); 141 void OnDnsCleared();
138 142
139 // Callback for AuthPolicyClient. 143 // Callback for AuthPolicyClient.
140 void DoAdAuth(const std::string& username, 144 void DoAdAuth(const std::string& username,
141 const Key& key, 145 const Key& key,
142 authpolicy::ErrorType error, 146 authpolicy::ErrorType error,
143 const std::string& uid); 147 const authpolicy::ActiveDirectoryAccountData& account_data);
144 148
145 // Callback for writing password into pipe. 149 // Callback for writing password into pipe.
146 void OnPasswordPipeReady(const std::string& username, 150 void OnPasswordPipeReady(const std::string& username,
147 const Key& key, 151 const Key& key,
148 base::ScopedFD password_fd); 152 base::ScopedFD password_fd);
149 153
150 // Show sign-in screen for the given credentials. 154 // Show sign-in screen for the given credentials.
151 void ShowSigninScreenForTest(const std::string& username, 155 void ShowSigninScreenForTest(const std::string& username,
152 const std::string& password); 156 const std::string& password);
153 // Attempts login for test. 157 // Attempts login for test.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool auth_extension_being_loaded_ = false; 276 bool auth_extension_being_loaded_ = false;
273 277
274 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 278 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
275 279
276 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 280 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
277 }; 281 };
278 282
279 } // namespace chromeos 283 } // namespace chromeos
280 284
281 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 285 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | 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