Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | |
|
xiyuan
2017/02/08 22:59:57
nit: nuke the empty line
Roman Sorokin (ftl)
2017/02/09 10:50:47
Done.
| |
| 24 class ActiveDirectoryAccountData; | |
| 25 } | |
| 26 | |
| 22 namespace chromeos { | 27 namespace chromeos { |
| 23 | 28 |
| 24 class Key; | 29 class Key; |
| 25 class SigninScreenHandler; | 30 class SigninScreenHandler; |
| 26 class SigninScreenHandlerDelegate; | 31 class SigninScreenHandlerDelegate; |
| 27 | 32 |
| 28 // A class that handles WebUI hooks in Gaia screen. | 33 // A class that handles WebUI hooks in Gaia screen. |
| 29 class GaiaScreenHandler : public BaseScreenHandler, | 34 class GaiaScreenHandler : public BaseScreenHandler, |
| 30 public NetworkPortalDetector::Observer { | 35 public NetworkPortalDetector::Observer { |
| 31 public: | 36 public: |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 void OnCookiesCleared(const base::Closure& on_clear_callback); | 138 void OnCookiesCleared(const base::Closure& on_clear_callback); |
| 134 | 139 |
| 135 // Kick off DNS cache flushing. | 140 // Kick off DNS cache flushing. |
| 136 void StartClearingDnsCache(); | 141 void StartClearingDnsCache(); |
| 137 void OnDnsCleared(); | 142 void OnDnsCleared(); |
| 138 | 143 |
| 139 // Callback for AuthPolicyClient. | 144 // Callback for AuthPolicyClient. |
| 140 void DoAdAuth(const std::string& username, | 145 void DoAdAuth(const std::string& username, |
| 141 const Key& key, | 146 const Key& key, |
| 142 authpolicy::ErrorType error, | 147 authpolicy::ErrorType error, |
| 143 const std::string& uid); | 148 const authpolicy::ActiveDirectoryAccountData& account_data); |
| 144 | 149 |
| 145 // Callback for writing password into pipe. | 150 // Callback for writing password into pipe. |
| 146 void OnPasswordPipeReady(const std::string& username, | 151 void OnPasswordPipeReady(const std::string& username, |
| 147 const Key& key, | 152 const Key& key, |
| 148 base::ScopedFD password_fd); | 153 base::ScopedFD password_fd); |
| 149 | 154 |
| 150 // Show sign-in screen for the given credentials. | 155 // Show sign-in screen for the given credentials. |
| 151 void ShowSigninScreenForTest(const std::string& username, | 156 void ShowSigninScreenForTest(const std::string& username, |
| 152 const std::string& password); | 157 const std::string& password); |
| 153 // Attempts login for test. | 158 // Attempts login for test. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 bool auth_extension_being_loaded_ = false; | 277 bool auth_extension_being_loaded_ = false; |
| 273 | 278 |
| 274 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 279 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 275 | 280 |
| 276 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 281 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 277 }; | 282 }; |
| 278 | 283 |
| 279 } // namespace chromeos | 284 } // namespace chromeos |
| 280 | 285 |
| 281 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 286 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |