| 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" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.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/extensions/signin/scoped_gaia_auth_extension.h" | 14 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h" |
| 15 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 15 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" | 16 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" |
| 16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 17 | 18 |
| 18 namespace policy { | 19 namespace policy { |
| 19 class ConsumerManagementService; | 20 class ConsumerManagementService; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace chromeos { | 23 namespace chromeos { |
| 23 | 24 |
| 24 class SigninScreenHandler; | 25 class SigninScreenHandler; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void MaybePreloadAuthExtension(); | 91 void MaybePreloadAuthExtension(); |
| 91 | 92 |
| 92 FrameState frame_state() const { return frame_state_; } | 93 FrameState frame_state() const { return frame_state_; } |
| 93 net::Error frame_error() const { return frame_error_; } | 94 net::Error frame_error() const { return frame_error_; } |
| 94 | 95 |
| 95 private: | 96 private: |
| 96 // TODO (ygorshenin@): remove this dependency. | 97 // TODO (ygorshenin@): remove this dependency. |
| 97 friend class SigninScreenHandler; | 98 friend class SigninScreenHandler; |
| 98 | 99 |
| 99 // BaseScreenHandler implementation: | 100 // BaseScreenHandler implementation: |
| 100 void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 101 void DeclareLocalizedValues( |
| 102 ::login::LocalizedValuesBuilder* builder) override; |
| 101 void GetAdditionalParameters(base::DictionaryValue* dict) override; | 103 void GetAdditionalParameters(base::DictionaryValue* dict) override; |
| 102 void Initialize() override; | 104 void Initialize() override; |
| 103 | 105 |
| 104 // WebUIMessageHandler implementation: | 106 // WebUIMessageHandler implementation: |
| 105 void RegisterMessages() override; | 107 void RegisterMessages() override; |
| 106 | 108 |
| 107 // WebUI message handlers. | 109 // WebUI message handlers. |
| 108 void HandleFrameLoadingCompleted(int status); | 110 void HandleFrameLoadingCompleted(int status); |
| 109 void HandleCompleteAuthentication(const std::string& gaia_id, | 111 void HandleCompleteAuthentication(const std::string& gaia_id, |
| 110 const std::string& email, | 112 const std::string& email, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 261 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
| 260 | 262 |
| 261 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 263 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 262 | 264 |
| 263 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 265 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 } // namespace chromeos | 268 } // namespace chromeos |
| 267 | 269 |
| 268 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 270 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |