| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 16 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
| 17 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" | 17 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" |
| 18 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" | 18 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" |
| 19 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 19 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
| 20 #include "chrome/common/net/gaia/google_service_auth_error.h" | 20 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 21 | 21 |
| 22 class CancelableTask; | |
| 23 class GaiaAuthFetcher; | 22 class GaiaAuthFetcher; |
| 24 class Profile; | 23 class Profile; |
| 25 | 24 |
| 26 namespace net { | |
| 27 class URLRequestContextGetter; | |
| 28 } | |
| 29 | |
| 30 namespace chromeos { | 25 namespace chromeos { |
| 31 class AuthAttemptState; | 26 class AuthAttemptState; |
| 32 class AuthAttemptStateResolver; | 27 class AuthAttemptStateResolver; |
| 33 | 28 |
| 34 class OnlineAttempt | 29 class OnlineAttempt |
| 35 : public base::RefCountedThreadSafe<OnlineAttempt>, | 30 : public base::RefCountedThreadSafe<OnlineAttempt>, |
| 36 public GaiaAuthConsumer, | 31 public GaiaAuthConsumer, |
| 37 public GaiaOAuthConsumer { | 32 public GaiaOAuthConsumer { |
| 38 public: | 33 public: |
| 39 OnlineAttempt(bool using_oauth, | 34 OnlineAttempt(bool using_oauth, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Whether we're willing to re-try the ClientLogin attempt. | 85 // Whether we're willing to re-try the ClientLogin attempt. |
| 91 bool try_again_; | 86 bool try_again_; |
| 92 | 87 |
| 93 friend class OnlineAttemptTest; | 88 friend class OnlineAttemptTest; |
| 94 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); | 89 DISALLOW_COPY_AND_ASSIGN(OnlineAttempt); |
| 95 }; | 90 }; |
| 96 | 91 |
| 97 } // namespace chromeos | 92 } // namespace chromeos |
| 98 | 93 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_H_ |
| OLD | NEW |