| 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 #include "chromeos/login/auth/online_attempt.h" | 5 #include "chromeos/login/auth/online_attempt.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | 7 |
| 9 #include "base/bind.h" | 8 #include "base/bind.h" |
| 10 #include "base/location.h" | 9 #include "base/location.h" |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "base/memory/ref_counted.h" | |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 15 #include "chromeos/login/auth/auth_attempt_state.h" | 12 #include "chromeos/login/auth/auth_attempt_state.h" |
| 16 #include "chromeos/login/auth/auth_attempt_state_resolver.h" | 13 #include "chromeos/login/auth/auth_attempt_state_resolver.h" |
| 17 #include "chromeos/login/auth/key.h" | 14 #include "chromeos/login/auth/key.h" |
| 18 #include "chromeos/login/auth/user_context.h" | 15 #include "chromeos/login/auth/user_context.h" |
| 19 #include "components/user_manager/user_type.h" | 16 #include "components/user_manager/user_type.h" |
| 20 #include "google_apis/gaia/gaia_auth_consumer.h" | |
| 21 #include "google_apis/gaia/gaia_auth_fetcher.h" | 17 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 22 #include "google_apis/gaia/gaia_constants.h" | 18 #include "google_apis/gaia/gaia_constants.h" |
| 23 #include "net/base/load_flags.h" | 19 #include "net/base/load_flags.h" |
| 24 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 25 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
| 26 | 22 |
| 27 namespace chromeos { | 23 namespace chromeos { |
| 28 | 24 |
| 29 // static | 25 // static |
| 30 const int OnlineAttempt::kClientLoginTimeoutMs = 10000; | 26 const int OnlineAttempt::kClientLoginTimeoutMs = 10000; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 139 } |
| 144 } | 140 } |
| 145 | 141 |
| 146 void OnlineAttempt::TriggerResolve(const AuthFailure& outcome) { | 142 void OnlineAttempt::TriggerResolve(const AuthFailure& outcome) { |
| 147 attempt_->RecordOnlineLoginStatus(outcome); | 143 attempt_->RecordOnlineLoginStatus(outcome); |
| 148 client_fetcher_.reset(NULL); | 144 client_fetcher_.reset(NULL); |
| 149 resolver_->Resolve(); | 145 resolver_->Resolve(); |
| 150 } | 146 } |
| 151 | 147 |
| 152 } // namespace chromeos | 148 } // namespace chromeos |
| OLD | NEW |