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

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

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/api/attachments/fake_attachment_service.h
diff --git a/sync/api/attachments/fake_attachment_service.h b/sync/api/attachments/fake_attachment_service.h
index 8159e0f9dd68af9508eaeab01afbf1b63d12d270..e35da216ea94ada4fa53b9c334b4b1fc9210b365 100644
--- a/sync/api/attachments/fake_attachment_service.h
+++ b/sync/api/attachments/fake_attachment_service.h
@@ -26,6 +26,7 @@ class SYNC_EXPORT FakeAttachmentService : public AttachmentService,
static scoped_ptr<syncer::AttachmentService> CreateForTest();
// AttachmentService implementation.
+ virtual void SetDelegate(Delegate* delegate) OVERRIDE;
virtual void GetOrDownloadAttachments(const AttachmentIdList& attachment_ids,
const GetOrDownloadCallback& callback)
OVERRIDE;
@@ -45,9 +46,12 @@ class SYNC_EXPORT FakeAttachmentService : public AttachmentService,
const AttachmentStore::Result& result);
void WriteDone(const StoreCallback& callback,
const AttachmentStore::Result& result);
+ void UploadDone(const AttachmentUploader::UploadResult& result,
+ const AttachmentId& attachment_id);
const scoped_ptr<AttachmentStore> attachment_store_;
const scoped_ptr<AttachmentUploader> attachment_uploader_;
+ Delegate* delegate_;
// Must be last data member.
base::WeakPtrFactory<FakeAttachmentService> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698