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

Unified Diff: components/sync_driver/generic_change_processor.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: components/sync_driver/generic_change_processor.h
diff --git a/components/sync_driver/generic_change_processor.h b/components/sync_driver/generic_change_processor.h
index 9f55a53a8ee6c45e5aedcbf394a6b6b98a3912b5..fb3d910653f7c7e0990ae9fb0f1dabfecf47613d 100644
--- a/components/sync_driver/generic_change_processor.h
+++ b/components/sync_driver/generic_change_processor.h
@@ -39,6 +39,7 @@ namespace browser_sync {
// be used on the same thread in which it was created.
class GenericChangeProcessor : public ChangeProcessor,
public syncer::SyncChangeProcessor,
+ public syncer::AttachmentService::Delegate,
public base::NonThreadSafe {
public:
// Create a change processor and connect it to the syncer.
@@ -71,6 +72,10 @@ class GenericChangeProcessor : public ChangeProcessor,
syncer::SyncChangeProcessor::ContextRefreshStatus refresh_status,
const std::string& context) OVERRIDE;
+ // syncer::AttachmentService::Delegate implementation.
+ virtual void OnAttachmentUploaded(
+ const syncer::AttachmentId& attachment_id) OVERRIDE;
+
// Similar to above, but returns a SyncError for use by direct clients
// of GenericChangeProcessor that may need more error visibility.
virtual syncer::SyncError GetAllSyncDataReturnError(
« no previous file with comments | « no previous file | components/sync_driver/generic_change_processor.cc » ('j') | sync/api/attachments/attachment_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698