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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 void EnsureTitleUniqueness(const std::string& parent_resource_id, | 285 void EnsureTitleUniqueness(const std::string& parent_resource_id, |
286 const std::string& expected_title, | 286 const std::string& expected_title, |
287 const ResourceEntryCallback& callback); | 287 const ResourceEntryCallback& callback); |
288 void DidListEntriesToEnsureUniqueness( | 288 void DidListEntriesToEnsureUniqueness( |
289 const std::string& parent_resource_id, | 289 const std::string& parent_resource_id, |
290 const std::string& expected_title, | 290 const std::string& expected_title, |
291 const ResourceEntryCallback& callback, | 291 const ResourceEntryCallback& callback, |
292 google_apis::GDataErrorCode error, | 292 google_apis::GDataErrorCode error, |
293 scoped_ptr<google_apis::ResourceList> feed); | 293 scoped_ptr<google_apis::ResourceList> feed); |
294 void DeleteEntries(ScopedVector<google_apis::ResourceEntry> entries, | 294 void DeleteEntriesForEnsuringTitleUniqueness( |
295 const GDataErrorCallback& callback); | 295 ScopedVector<google_apis::ResourceEntry> entries, |
296 void DidDeleteEntry(ScopedVector<google_apis::ResourceEntry> entries, | 296 const GDataErrorCallback& callback); |
297 const GDataErrorCallback& callback, | 297 void DidDeleteEntriesForEnsuringTitleUniqueness( |
298 google_apis::GDataErrorCode error); | 298 ScopedVector<google_apis::ResourceEntry> entries, |
| 299 const GDataErrorCallback& callback, |
| 300 google_apis::GDataErrorCode error); |
299 | 301 |
300 static std::string FormatTitleQuery(const std::string& title); | 302 static std::string FormatTitleQuery(const std::string& title); |
301 | 303 |
302 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; | 304 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; |
303 scoped_ptr<google_apis::DriveUploaderInterface> drive_uploader_; | 305 scoped_ptr<google_apis::DriveUploaderInterface> drive_uploader_; |
304 google_apis::GDataWapiUrlGenerator url_generator_; | 306 google_apis::GDataWapiUrlGenerator url_generator_; |
305 | 307 |
306 ObserverList<DriveFileSyncClientObserver> observers_; | 308 ObserverList<DriveFileSyncClientObserver> observers_; |
307 | 309 |
308 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncClient); | 310 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncClient); |
309 }; | 311 }; |
310 | 312 |
311 } // namespace sync_file_system | 313 } // namespace sync_file_system |
312 | 314 |
313 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ | 315 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_CLIENT_H_ |
OLD | NEW |