OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENROLLMENT_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Implements BaseScreenHandler: | 55 // Implements BaseScreenHandler: |
56 void Initialize() override; | 56 void Initialize() override; |
57 void DeclareLocalizedValues( | 57 void DeclareLocalizedValues( |
58 ::login::LocalizedValuesBuilder* builder) override; | 58 ::login::LocalizedValuesBuilder* builder) override; |
59 | 59 |
60 // Implements NetworkStateInformer::NetworkStateInformerObserver | 60 // Implements NetworkStateInformer::NetworkStateInformerObserver |
61 void UpdateState(NetworkError::ErrorReason reason) override; | 61 void UpdateState(NetworkError::ErrorReason reason) override; |
62 | 62 |
63 private: | 63 private: |
64 // Handlers for WebUI messages. | 64 // Handlers for WebUI messages. |
| 65 void HandleToggleFakeEnrollment(); |
65 void HandleClose(const std::string& reason); | 66 void HandleClose(const std::string& reason); |
66 void HandleCompleteLogin(const std::string& user, | 67 void HandleCompleteLogin(const std::string& user, |
67 const std::string& auth_code); | 68 const std::string& auth_code); |
68 void HandleRetry(); | 69 void HandleRetry(); |
69 void HandleFrameLoadingCompleted(); | 70 void HandleFrameLoadingCompleted(); |
70 void HandleDeviceAttributesProvided(const std::string& asset_id, | 71 void HandleDeviceAttributesProvided(const std::string& asset_id, |
71 const std::string& location); | 72 const std::string& location); |
72 void HandleOnLearnMore(); | 73 void HandleOnLearnMore(); |
73 | 74 |
74 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update); | 75 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 scoped_refptr<HelpAppLauncher> help_app_; | 126 scoped_refptr<HelpAppLauncher> help_app_; |
126 | 127 |
127 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; | 128 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); | 130 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace chromeos | 133 } // namespace chromeos |
133 | 134 |
134 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 135 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
OLD | NEW |