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/chromeos/gdata/gdata_operations.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
6 | 6 |
7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 10 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 namespace gdata { | 150 namespace gdata { |
151 | 151 |
152 //============================ GetDocumentsOperation =========================== | 152 //============================ GetDocumentsOperation =========================== |
153 | 153 |
154 GetDocumentsOperation::GetDocumentsOperation( | 154 GetDocumentsOperation::GetDocumentsOperation( |
155 GDataOperationRegistry* registry, | 155 GDataOperationRegistry* registry, |
156 Profile* profile, | 156 Profile* profile, |
157 int start_changestamp, | 157 int start_changestamp, |
158 const std::string& search_string, | 158 const std::string& search_string, |
159 const std::string& directory_resource_id, | 159 const std::string& directory_resource_id, |
160 | |
161 const GetDataCallback& callback) | 160 const GetDataCallback& callback) |
162 : GetDataOperation(registry, profile, callback), | 161 : GetDataOperation(registry, profile, callback), |
163 start_changestamp_(start_changestamp), | 162 start_changestamp_(start_changestamp), |
164 search_string_(search_string), | 163 search_string_(search_string), |
165 directory_resource_id_(directory_resource_id) { | 164 directory_resource_id_(directory_resource_id) { |
166 } | 165 } |
167 | 166 |
168 GetDocumentsOperation::~GetDocumentsOperation() {} | 167 GetDocumentsOperation::~GetDocumentsOperation() {} |
169 | 168 |
170 void GetDocumentsOperation::SetUrl(const GURL& url) { | 169 void GetDocumentsOperation::SetUrl(const GURL& url) { |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS); | 941 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS); |
943 } | 942 } |
944 | 943 |
945 void GetContactPhotoOperation::RunCallbackOnPrematureFailure( | 944 void GetContactPhotoOperation::RunCallbackOnPrematureFailure( |
946 GDataErrorCode code) { | 945 GDataErrorCode code) { |
947 scoped_ptr<std::string> data(new std::string); | 946 scoped_ptr<std::string> data(new std::string); |
948 callback_.Run(code, data.Pass()); | 947 callback_.Run(code, data.Pass()); |
949 } | 948 } |
950 | 949 |
951 } // namespace gdata | 950 } // namespace gdata |
OLD | NEW |