summaryrefslogtreecommitdiffstats
path: root/sync/api/fake_syncable_service.cc
diff options
context:
space:
mode:
authorpavely <pavely@chromium.org>2015-03-25 16:47:54 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 23:48:49 +0000
commitdc577c86a31224a121b37e0f46e6de8f5e7f6435 (patch)
tree2ef9a8f05c1a9efc1a597ee07df5a67df3fbb765 /sync/api/fake_syncable_service.cc
parenta8b89aa94a3320ee053d0f24869835914742c860 (diff)
downloadchromium_src-dc577c86a31224a121b37e0f46e6de8f5e7f6435.zip
chromium_src-dc577c86a31224a121b37e0f46e6de8f5e7f6435.tar.gz
chromium_src-dc577c86a31224a121b37e0f46e6de8f5e7f6435.tar.bz2
[Sync] Introduce AttachmentStoreForSync class
In this change: - Add AttachmentStoreForSync class. It has functions that will be called by AttachmentServiceImpl to manage sync’s references to attachments. - Change AttachmentServiceImpl to call those functions. The rule is that for all attachments that we start uploading call AddSyncReference, for all attachments that we no longer upload (for whatever reason) call DropSyncReference. Couple of notes: - There is no storage implementation for those functions, it will come in the next change. - There is growing confusion between AttachmentIdSet and AttachmentIdList. I’ll resolve this next week in a separate change. BUG=457735 R=maniscalco@chromium.org TEST=No user facing behavior. Change covered by sync_unit_tests. Review URL: https://codereview.chromium.org/1002263005 Cr-Commit-Position: refs/heads/master@{#322263}
Diffstat (limited to 'sync/api/fake_syncable_service.cc')
-rw-r--r--sync/api/fake_syncable_service.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sync/api/fake_syncable_service.cc b/sync/api/fake_syncable_service.cc
index d2177e9..342dd2d 100644
--- a/sync/api/fake_syncable_service.cc
+++ b/sync/api/fake_syncable_service.cc
@@ -70,9 +70,10 @@ SyncError FakeSyncableService::ProcessSyncChanges(
return process_sync_changes_error_;
}
-scoped_ptr<AttachmentStore> FakeSyncableService::GetAttachmentStoreForSync() {
+scoped_ptr<AttachmentStoreForSync>
+FakeSyncableService::GetAttachmentStoreForSync() {
return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync()
- : scoped_ptr<AttachmentStore>();
+ : scoped_ptr<AttachmentStoreForSync>();
}
void FakeSyncableService::SetAttachmentService(