| 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/browser/google_apis/gdata_wapi_operations.h" | 5 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 } // namespace | 157 } // namespace |
| 158 | 158 |
| 159 //============================ GetResourceListOperation ======================== | 159 //============================ GetResourceListOperation ======================== |
| 160 | 160 |
| 161 GetResourceListOperation::GetResourceListOperation( | 161 GetResourceListOperation::GetResourceListOperation( |
| 162 OperationRegistry* registry, | 162 OperationRegistry* registry, |
| 163 net::URLRequestContextGetter* url_request_context_getter, | 163 net::URLRequestContextGetter* url_request_context_getter, |
| 164 const GDataWapiUrlGenerator& url_generator, | 164 const GDataWapiUrlGenerator& url_generator, |
| 165 const GURL& override_url, | 165 const GURL& override_url, |
| 166 int start_changestamp, | 166 int64 start_changestamp, |
| 167 const std::string& search_string, | 167 const std::string& search_string, |
| 168 const std::string& directory_resource_id, | 168 const std::string& directory_resource_id, |
| 169 const GetResourceListCallback& callback) | 169 const GetResourceListCallback& callback) |
| 170 : GetDataOperation(registry, url_request_context_getter, | 170 : GetDataOperation(registry, url_request_context_getter, |
| 171 base::Bind(&ParseResourceListAndRun, callback)), | 171 base::Bind(&ParseResourceListAndRun, callback)), |
| 172 url_generator_(url_generator), | 172 url_generator_(url_generator), |
| 173 override_url_(override_url), | 173 override_url_(override_url), |
| 174 start_changestamp_(start_changestamp), | 174 start_changestamp_(start_changestamp), |
| 175 search_string_(search_string), | 175 search_string_(search_string), |
| 176 directory_resource_id_(directory_resource_id) { | 176 directory_resource_id_(directory_resource_id) { |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 base::Int64ToString(content_length_)); | 728 base::Int64ToString(content_length_)); |
| 729 return headers; | 729 return headers; |
| 730 } | 730 } |
| 731 | 731 |
| 732 void GetUploadStatusOperation::OnRangeOperationComplete( | 732 void GetUploadStatusOperation::OnRangeOperationComplete( |
| 733 const UploadRangeResponse& response, scoped_ptr<base::Value> value) { | 733 const UploadRangeResponse& response, scoped_ptr<base::Value> value) { |
| 734 callback_.Run(response, ParseResourceEntry(value.Pass())); | 734 callback_.Run(response, ParseResourceEntry(value.Pass())); |
| 735 } | 735 } |
| 736 | 736 |
| 737 } // namespace google_apis | 737 } // namespace google_apis |
| OLD | NEW |