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

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

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build 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
« no previous file with comments | « components/sync_driver/sync_api_component_factory.h ('k') | sync/api/attachments/attachment_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_service.h
diff --git a/sync/api/attachments/attachment_service.h b/sync/api/attachments/attachment_service.h
index 9e5e25d1489afef08909549afa08ed1f36e74cc9..eb7a72a8d99362f655f8a6888493c79708a14971 100644
--- a/sync/api/attachments/attachment_service.h
+++ b/sync/api/attachments/attachment_service.h
@@ -54,6 +54,19 @@ class SYNC_EXPORT AttachmentService {
typedef base::Callback<void(const StoreResult&)> StoreCallback;
+ // An interface that embedder code implements to be notified about different
+ // events that originate from AttachmentService.
+ // This interface will be called from the same thread AttachmentService was
+ // created and called.
+ class Delegate {
+ public:
+ virtual ~Delegate() {}
+
+ // Attachment is uploaded to server and attachment_id is updated with server
+ // url.
+ virtual void OnAttachmentUploaded(const AttachmentId& attachment_id) = 0;
+ };
+
AttachmentService();
virtual ~AttachmentService();
« no previous file with comments | « components/sync_driver/sync_api_component_factory.h ('k') | sync/api/attachments/attachment_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698