| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/service/gaia/service_gaia_authenticator.h" | 5 #include "chrome/service/gaia/service_gaia_authenticator.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "chrome/service/net/service_url_request_context.h" | 9 #include "chrome/service/net/service_url_request_context.h" |
| 10 #include "chrome/service/service_process.h" | 10 #include "chrome/service/service_process.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ret = kMaxBackoffDelaySeconds; | 71 ret = kMaxBackoffDelaySeconds; |
| 72 } | 72 } |
| 73 return ret; | 73 return ret; |
| 74 } | 74 } |
| 75 | 75 |
| 76 ServiceGaiaAuthenticator::~ServiceGaiaAuthenticator() {} | 76 ServiceGaiaAuthenticator::~ServiceGaiaAuthenticator() {} |
| 77 | 77 |
| 78 void ServiceGaiaAuthenticator::DoPost(const GURL& post_url, | 78 void ServiceGaiaAuthenticator::DoPost(const GURL& post_url, |
| 79 const std::string& post_body) { | 79 const std::string& post_body) { |
| 80 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); | 80 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); |
| 81 content::URLFetcher* request = content::URLFetcher::Create( | 81 net::URLFetcher* request = content::URLFetcher::Create( |
| 82 post_url, content::URLFetcher::POST, this); | 82 post_url, net::URLFetcher::POST, this); |
| 83 request->SetRequestContext( | 83 request->SetRequestContext( |
| 84 g_service_process->GetServiceURLRequestContextGetter()); | 84 g_service_process->GetServiceURLRequestContextGetter()); |
| 85 request->SetUploadData("application/x-www-form-urlencoded", post_body); | 85 request->SetUploadData("application/x-www-form-urlencoded", post_body); |
| 86 request->Start(); | 86 request->Start(); |
| 87 } | 87 } |
| OLD | NEW |