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

Unified Diff: sync/api/attachments/attachment_store_backend.h

Issue 1002263005: [Sync] Introduce AttachmentStoreForSync class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/attachments/attachment_store.cc ('k') | sync/api/fake_syncable_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_store_backend.h
diff --git a/sync/api/attachments/attachment_store_backend.h b/sync/api/attachments/attachment_store_backend.h
index 74859fe72601e816fddde2764617a2fbcbe9aa1a..73bc0fbf16e1c8a005d896c0b5db8373c991a16e 100644
--- a/sync/api/attachments/attachment_store_backend.h
+++ b/sync/api/attachments/attachment_store_backend.h
@@ -36,17 +36,19 @@ class SYNC_EXPORT AttachmentStoreBackend {
virtual void Init(const AttachmentStore::InitCallback& callback) = 0;
virtual void Read(const AttachmentIdList& ids,
const AttachmentStore::ReadCallback& callback) = 0;
- virtual void Write(AttachmentStore::AttachmentReferrer referrer,
+ virtual void Write(AttachmentStore::Component component,
const AttachmentList& attachments,
const AttachmentStore::WriteCallback& callback) = 0;
- virtual void Drop(AttachmentStore::AttachmentReferrer referrer,
- const AttachmentIdList& ids,
- const AttachmentStore::DropCallback& callback) = 0;
+ virtual void SetReference(AttachmentStore::Component component,
+ const AttachmentIdList& ids) = 0;
+ virtual void DropReference(AttachmentStore::Component component,
+ const AttachmentIdList& ids,
+ const AttachmentStore::DropCallback& callback) = 0;
virtual void ReadMetadata(
const AttachmentIdList& ids,
const AttachmentStore::ReadMetadataCallback& callback) = 0;
virtual void ReadAllMetadata(
- AttachmentStore::AttachmentReferrer referrer,
+ AttachmentStore::Component component,
const AttachmentStore::ReadMetadataCallback& callback) = 0;
protected:
« no previous file with comments | « sync/api/attachments/attachment_store.cc ('k') | sync/api/fake_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698