| 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 | |
| 27 namespace net { | 22 namespace net { |
| 28 class URLRequestContextGetter; | 23 class URLRequestContextGetter; |
| 29 } | 24 } |
| 30 | 25 |
| 31 namespace chromeos { | 26 namespace chromeos { |
| 32 class AuthAttemptState; | 27 class AuthAttemptState; |
| 33 class AuthAttemptStateResolver; | 28 class AuthAttemptStateResolver; |
| 34 | 29 |
| 35 class CHROMEOS_EXPORT OnlineAttempt : public GaiaAuthConsumer { | 30 class CHROMEOS_EXPORT OnlineAttempt : public GaiaAuthConsumer { |
| 36 public: | 31 public: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Used to cancel the CancelClientLogin closure. | 73 // Used to cancel the CancelClientLogin closure. |
| 79 base::WeakPtrFactory<OnlineAttempt> weak_factory_; | 74 base::WeakPtrFactory<OnlineAttempt> weak_factory_; |
| 80 | 75 |
| 81 friend class OnlineAttemptTest; | 76 friend class OnlineAttemptTest; |
| 82 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); | 77 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); |
| 83 }; | 78 }; |
| 84 | 79 |
| 85 } // namespace chromeos | 80 } // namespace chromeos |
| 86 | 81 |
| 87 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ | 82 #endif // CHROMEOS_LOGIN_AUTH_ONLINE_ATTEMPT_H_ |
| OLD | NEW |