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" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chromeos/chromeos_export.h" | 15 #include "chromeos/chromeos_export.h" |
16 #include "chromeos/login/auth/auth_status_consumer.h" | 16 #include "chromeos/login/auth/auth_status_consumer.h" |
17 #include "google_apis/gaia/gaia_auth_consumer.h" | 17 #include "google_apis/gaia/gaia_auth_consumer.h" |
18 #include "google_apis/gaia/google_service_auth_error.h" | 18 #include "google_apis/gaia/google_service_auth_error.h" |
19 | 19 |
20 class GaiaAuthFetcher; | 20 class GaiaAuthFetcher; |
21 | 21 |
| 22 namespace base { |
| 23 // TODO(skyostil): Migrate to SingleThreadTaskRunner (crbug.com/465354). |
| 24 class MessageLoopProxy; |
| 25 } |
| 26 |
22 namespace net { | 27 namespace net { |
23 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
24 } | 29 } |
25 | 30 |
26 namespace chromeos { | 31 namespace chromeos { |
27 class AuthAttemptState; | 32 class AuthAttemptState; |
28 class AuthAttemptStateResolver; | 33 class AuthAttemptStateResolver; |
29 | 34 |
30 class CHROMEOS_EXPORT OnlineAttempt : public GaiaAuthConsumer { | 35 class CHROMEOS_EXPORT OnlineAttempt : public GaiaAuthConsumer { |
31 public: | 36 public: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Used to cancel the CancelClientLogin closure. | 78 // Used to cancel the CancelClientLogin closure. |
74 base::WeakPtrFactory<OnlineAttempt> weak_factory_; | 79 base::WeakPtrFactory<OnlineAttempt> weak_factory_; |
75 | 80 |
76 friend class OnlineAttemptTest; | 81 friend class OnlineAttemptTest; |
77 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); | 82 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); |
78 }; | 83 }; |
79 | 84 |
80 } // namespace chromeos | 85 } // namespace chromeos |
81 | 86 |
82 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ | 87 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ |
OLD | NEW |