| 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_ENTERPRISE_OAUTH_ENROLLMENT_SCREE
N_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_OAUTH_ENROLLMENT_SCREE
N_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_OAUTH_ENROLLMENT_SCREE
N_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_OAUTH_ENROLLMENT_SCREE
N_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual void OnUserInfoSuccess(const std::string& email) OVERRIDE; | 74 virtual void OnUserInfoSuccess(const std::string& email) OVERRIDE; |
| 75 virtual void OnUserInfoFailure(const GoogleServiceAuthError& error) OVERRIDE; | 75 virtual void OnUserInfoFailure(const GoogleServiceAuthError& error) OVERRIDE; |
| 76 | 76 |
| 77 // Implements BrowsingDataRemover::Observer: | 77 // Implements BrowsingDataRemover::Observer: |
| 78 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 78 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 class TokenRevoker; | 81 class TokenRevoker; |
| 82 | 82 |
| 83 // Handlers for WebUI messages. | 83 // Handlers for WebUI messages. |
| 84 void HandleClose(const base::ListValue* args); | 84 void HandleClose(const std::string& reason); |
| 85 void HandleCompleteLogin(const base::ListValue* args); | 85 void HandleCompleteLogin(const std::string& user); |
| 86 void HandleRetry(const base::ListValue* args); | 86 void HandleRetry(); |
| 87 | 87 |
| 88 // Shows a given enrollment step. | 88 // Shows a given enrollment step. |
| 89 void ShowStep(const char* step); | 89 void ShowStep(const char* step); |
| 90 | 90 |
| 91 // Display the given i18n resource as error message. | 91 // Display the given i18n resource as error message. |
| 92 void ShowError(int message_id, bool retry); | 92 void ShowError(int message_id, bool retry); |
| 93 | 93 |
| 94 // Display the given string as error message. | 94 // Display the given string as error message. |
| 95 void ShowErrorMessage(const std::string& message, bool retry); | 95 void ShowErrorMessage(const std::string& message, bool retry); |
| 96 | 96 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Helpers that revoke the tokens used. | 142 // Helpers that revoke the tokens used. |
| 143 ScopedVector<TokenRevoker> token_revokers_; | 143 ScopedVector<TokenRevoker> token_revokers_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(EnterpriseOAuthEnrollmentScreenHandler); | 145 DISALLOW_COPY_AND_ASSIGN(EnterpriseOAuthEnrollmentScreenHandler); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace chromeos | 148 } // namespace chromeos |
| 149 | 149 |
| 150 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_OAUTH_ENROLLMENT_SC
REEN_HANDLER_H_ | 150 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_OAUTH_ENROLLMENT_SC
REEN_HANDLER_H_ |
| OLD | NEW |