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(); | |
66 void HandleClose(const std::string& reason); | 65 void HandleClose(const std::string& reason); |
67 void HandleCompleteLogin(const std::string& user, | 66 void HandleCompleteLogin(const std::string& user, |
68 const std::string& auth_code); | 67 const std::string& auth_code); |
69 void HandleRetry(); | 68 void HandleRetry(); |
70 void HandleFrameLoadingCompleted(); | 69 void HandleFrameLoadingCompleted(); |
71 void HandleDeviceAttributesProvided(const std::string& asset_id, | 70 void HandleDeviceAttributesProvided(const std::string& asset_id, |
72 const std::string& location); | 71 const std::string& location); |
73 void HandleOnLearnMore(); | 72 void HandleOnLearnMore(); |
74 | 73 |
75 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update); | 74 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 scoped_refptr<HelpAppLauncher> help_app_; | 125 scoped_refptr<HelpAppLauncher> help_app_; |
127 | 126 |
128 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; | 127 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; |
129 | 128 |
130 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); | 129 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); |
131 }; | 130 }; |
132 | 131 |
133 } // namespace chromeos | 132 } // namespace chromeos |
134 | 133 |
135 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 134 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
OLD | NEW |