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

Unified Diff: sync/internal_api/attachments/attachment_store_handle.cc

Issue 652723003: Implementation of OnDiskAttachmentStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OVERRIDE => override Created 6 years, 2 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
Index: sync/internal_api/attachments/attachment_store_handle.cc
diff --git a/sync/internal_api/attachments/attachment_store_handle.cc b/sync/internal_api/attachments/attachment_store_handle.cc
index bfb637a141cbd46b653d29e83a2377c0a9fe1eef..ce9fe6621899dc43edc148f79224809b510993fa 100644
--- a/sync/internal_api/attachments/attachment_store_handle.cc
+++ b/sync/internal_api/attachments/attachment_store_handle.cc
@@ -37,6 +37,14 @@ AttachmentStoreHandle::~AttachmentStoreHandle() {
FROM_HERE, base::Bind(&NoOp, base::Passed(&backend_)));
}
+void AttachmentStoreHandle::Load(const LoadCallback& callback) {
+ DCHECK(CalledOnValidThread());
+ backend_task_runner_->PostTask(FROM_HERE,
+ base::Bind(&AttachmentStoreBase::Load,
+ base::Unretained(backend_.get()),
+ callback));
+}
+
void AttachmentStoreHandle::Read(const AttachmentIdList& ids,
const ReadCallback& callback) {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698