OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ |
6 #define CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ | 6 #define CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void CancelRequest(); | 61 void CancelRequest(); |
62 | 62 |
63 scoped_refptr<base::MessageLoopProxy> message_loop_; | 63 scoped_refptr<base::MessageLoopProxy> message_loop_; |
64 | 64 |
65 AuthAttemptState* const attempt_; | 65 AuthAttemptState* const attempt_; |
66 AuthAttemptStateResolver* const resolver_; | 66 AuthAttemptStateResolver* const resolver_; |
67 | 67 |
68 // Handles ClientLogin communications with Gaia. | 68 // Handles ClientLogin communications with Gaia. |
69 scoped_ptr<GaiaAuthFetcher> client_fetcher_; | 69 scoped_ptr<GaiaAuthFetcher> client_fetcher_; |
70 | 70 |
| 71 // Whether we're willing to re-try the ClientLogin attempt. |
| 72 bool try_again_; |
| 73 |
71 // Used to cancel the CancelClientLogin closure. | 74 // Used to cancel the CancelClientLogin closure. |
72 base::WeakPtrFactory<OnlineAttempt> weak_factory_; | 75 base::WeakPtrFactory<OnlineAttempt> weak_factory_; |
73 | 76 |
74 // Whether we're willing to re-try the ClientLogin attempt. | |
75 bool try_again_; | |
76 | |
77 friend class OnlineAttemptTest; | 77 friend class OnlineAttemptTest; |
78 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); | 78 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace chromeos | 81 } // namespace chromeos |
82 | 82 |
83 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ | 83 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ |
OLD | NEW |