| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 CoreOobeActor* core_oobe_actor, | 71 CoreOobeActor* core_oobe_actor, |
| 72 const scoped_refptr<NetworkStateInformer>& network_state_informer, | 72 const scoped_refptr<NetworkStateInformer>& network_state_informer, |
| 73 policy::ConsumerManagementService* consumer_management); | 73 policy::ConsumerManagementService* consumer_management); |
| 74 ~GaiaScreenHandler() override; | 74 ~GaiaScreenHandler() override; |
| 75 | 75 |
| 76 void LoadGaia(const GaiaContext& context); | 76 void LoadGaia(const GaiaContext& context); |
| 77 | 77 |
| 78 // Callback that loads GAIA after version information has been retrieved. | 78 // Callback that loads GAIA after version information has been retrieved. |
| 79 void LoadGaiaWithVersion(const GaiaContext& context, | 79 void LoadGaiaWithVersion(const GaiaContext& context, |
| 80 const std::string& platform_version); | 80 const std::string& platform_version); |
| 81 void UpdateGaia(const GaiaContext& context); | |
| 82 | 81 |
| 83 // Sends request to reload Gaia. If |force_reload| is true, request | 82 // Sends request to reload Gaia. If |force_reload| is true, request |
| 84 // will be sent in any case, otherwise it will be sent only when Gaia is | 83 // will be sent in any case, otherwise it will be sent only when Gaia is |
| 85 // not loading right now. | 84 // not loading right now. |
| 86 void ReloadGaia(bool force_reload); | 85 void ReloadGaia(bool force_reload); |
| 87 | 86 |
| 88 // Turns offline idle detection on or off. Idle detection should only be on if | 87 // Turns offline idle detection on or off. Idle detection should only be on if |
| 89 // we're using the offline login page but the device is online. | 88 // we're using the offline login page but the device is online. |
| 90 void MonitorOfflineIdle(bool is_online); | 89 void MonitorOfflineIdle(bool is_online); |
| 91 | 90 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 272 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
| 274 | 273 |
| 275 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 274 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 276 | 275 |
| 277 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 276 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 278 }; | 277 }; |
| 279 | 278 |
| 280 } // namespace chromeos | 279 } // namespace chromeos |
| 281 | 280 |
| 282 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 281 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |