Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_client.h

Issue 12209115: Sync FileSystem: disable etag match on duplication recovery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment, rename deletion function Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698