| Index: chrome/browser/chromeos/policy/wildcard_login_checker.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/policy/wildcard_login_checker.h (revision 259991)
|
| +++ chrome/browser/chromeos/policy/wildcard_login_checker.h (working copy)
|
| @@ -25,8 +25,15 @@
|
| // reports the result via a callback.
|
| class WildcardLoginChecker : public UserInfoFetcher::Delegate {
|
| public:
|
| - typedef base::Callback<void(bool)> StatusCallback;
|
| + // Indicates result of the wildcard login check.
|
| + enum Result {
|
| + RESULT_ALLOWED, // Wildcard check succeeded, login allowed.
|
| + RESULT_BLOCKED, // Check completed, but user should be blocked.
|
| + RESULT_FAILED, // Failure due to network errors etc.
|
| + };
|
|
|
| + typedef base::Callback<void(Result)> StatusCallback;
|
| +
|
| WildcardLoginChecker();
|
| virtual ~WildcardLoginChecker();
|
|
|
| @@ -53,7 +60,7 @@
|
| void StartUserInfoFetcher(const std::string& access_token);
|
|
|
| // Handles the response of the check and calls ReportResult().
|
| - void OnCheckCompleted(bool result);
|
| + void OnCheckCompleted(Result result);
|
|
|
| StatusCallback callback_;
|
|
|
|
|