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

Unified Diff: components/sync_driver/generic_change_processor.h

Issue 264793007: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak. Created 6 years, 8 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 | « no previous file | components/sync_driver/generic_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a5e33cbc769286ee2d7c0ea382dcf37f3836d67b..9f55a53a8ee6c45e5aedcbf394a6b6b98a3912b5 100644
--- a/components/sync_driver/generic_change_processor.h
+++ b/components/sync_driver/generic_change_processor.h
@@ -98,18 +98,27 @@ class GenericChangeProcessor : public ChangeProcessor,
virtual syncer::UserShare* share_handle() const OVERRIDE;
private:
- // Helper methods for acting on changes coming from the datatype. These are
- // logically part of ProcessSyncChanges.
+ // Logically part of ProcessSyncChanges.
+ //
+ // |new_attachments| is an output parameter containing newly added attachments
+ // that need to be stored. This method will append to it.
syncer::SyncError HandleActionAdd(const syncer::SyncChange& change,
const std::string& type_str,
const syncer::ModelType& type,
const syncer::WriteTransaction& trans,
- syncer::WriteNode* sync_node);
+ syncer::WriteNode* sync_node,
+ syncer::AttachmentList* new_attachments);
+
+ // Logically part of ProcessSyncChanges.
+ //
+ // |new_attachments| is an output parameter containing newly added attachments
+ // that need to be stored. This method will append to it.
syncer::SyncError HandleActionUpdate(const syncer::SyncChange& change,
const std::string& type_str,
const syncer::ModelType& type,
const syncer::WriteTransaction& trans,
- syncer::WriteNode* sync_node);
+ syncer::WriteNode* sync_node,
+ syncer::AttachmentList* new_attachments);
// The SyncableService this change processor will forward changes on to.
const base::WeakPtr<syncer::SyncableService> local_service_;
« no previous file with comments | « no previous file | components/sync_driver/generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698