| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 void DidGetLargestChangeStamp( | 152 void DidGetLargestChangeStamp( |
| 153 const ChangeStampCallback& callback, | 153 const ChangeStampCallback& callback, |
| 154 google_apis::GDataErrorCode error, | 154 google_apis::GDataErrorCode error, |
| 155 scoped_ptr<google_apis::AboutResource> about_resource); | 155 scoped_ptr<google_apis::AboutResource> about_resource); |
| 156 | 156 |
| 157 void DidGetDriveRootResourceIdForEnsureSyncRoot( | 157 void DidGetDriveRootResourceIdForEnsureSyncRoot( |
| 158 const std::string& sync_root_resource_id, | 158 const std::string& sync_root_resource_id, |
| 159 google_apis::GDataErrorCode error); | 159 google_apis::GDataErrorCode error); |
| 160 | 160 |
| 161 void DidGetFileList(const ResourceListCallback& callback, |
| 162 google_apis::GDataErrorCode error, |
| 163 scoped_ptr<google_apis::FileList> file_list); |
| 164 |
| 161 void DidGetChangeList(const ResourceListCallback& callback, | 165 void DidGetChangeList(const ResourceListCallback& callback, |
| 162 google_apis::GDataErrorCode error, | 166 google_apis::GDataErrorCode error, |
| 163 scoped_ptr<google_apis::ChangeList> change_list); | 167 scoped_ptr<google_apis::ChangeList> change_list); |
| 164 | 168 |
| 165 void DidGetResourceList(const ResourceListCallback& callback, | |
| 166 google_apis::GDataErrorCode error, | |
| 167 scoped_ptr<google_apis::ResourceList> resource_list); | |
| 168 | |
| 169 void DidGetResourceEntry(const ResourceEntryCallback& callback, | 169 void DidGetResourceEntry(const ResourceEntryCallback& callback, |
| 170 google_apis::GDataErrorCode error, | 170 google_apis::GDataErrorCode error, |
| 171 scoped_ptr<google_apis::ResourceEntry> entry); | 171 scoped_ptr<google_apis::ResourceEntry> entry); |
| 172 | 172 |
| 173 void DidGetTemporaryFileForDownload( | 173 void DidGetTemporaryFileForDownload( |
| 174 const std::string& resource_id, | 174 const std::string& resource_id, |
| 175 const std::string& local_file_md5, | 175 const std::string& local_file_md5, |
| 176 scoped_ptr<webkit_blob::ScopedFile> local_file, | 176 scoped_ptr<webkit_blob::ScopedFile> local_file, |
| 177 const DownloadFileCallback& callback, | 177 const DownloadFileCallback& callback, |
| 178 bool success); | 178 bool success); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 ObserverList<APIUtilObserver> observers_; | 261 ObserverList<APIUtilObserver> observers_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(APIUtil); | 263 DISALLOW_COPY_AND_ASSIGN(APIUtil); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 } // namespace drive_backend | 266 } // namespace drive_backend |
| 267 } // namespace sync_file_system | 267 } // namespace sync_file_system |
| 268 | 268 |
| 269 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ | 269 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_H_ |
| OLD | NEW |