| 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_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // a time (the newest call stops the old one, if called with another username | 36 // a time (the newest call stops the old one, if called with another username |
| 37 // and password combination). | 37 // and password combination). |
| 38 void Check(Profile* profile, | 38 void Check(Profile* profile, |
| 39 const std::string &username, | 39 const std::string &username, |
| 40 const std::string &password); | 40 const std::string &password); |
| 41 | 41 |
| 42 // Resets the checking process. | 42 // Resets the checking process. |
| 43 void Reset(); | 43 void Reset(); |
| 44 | 44 |
| 45 // AuthAttemptStateResolver overrides. | 45 // AuthAttemptStateResolver overrides. |
| 46 // Executed on IO thread. |
| 46 virtual void Resolve() OVERRIDE; | 47 virtual void Resolve() OVERRIDE; |
| 47 | 48 |
| 49 // Does an actual resolve on UI thread. |
| 50 void ResolveOnUIThread(bool success); |
| 51 |
| 48 private: | 52 private: |
| 49 Delegate* delegate_; | 53 Delegate* delegate_; |
| 50 std::string current_attempt_hash_; | 54 std::string current_attempt_hash_; |
| 51 std::string current_username_; | 55 std::string current_username_; |
| 52 scoped_refptr<OnlineAttempt> online_attempt_; | 56 scoped_refptr<OnlineAttempt> online_attempt_; |
| 53 scoped_ptr<AuthAttemptState> state_; | 57 scoped_ptr<AuthAttemptState> state_; |
| 54 | 58 |
| 55 DISALLOW_COPY_AND_ASSIGN(OnlineAttemptHost); | 59 DISALLOW_COPY_AND_ASSIGN(OnlineAttemptHost); |
| 56 }; | 60 }; |
| 57 | 61 |
| 58 } // chromeos | 62 } // chromeos |
| 59 | 63 |
| 60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ |
| OLD | NEW |