summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
authormaniscalco <maniscalco@chromium.org>2014-09-22 09:37:50 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-22 16:38:13 +0000
commit72ad3c600a38cfa8e8f00cb22e5eddffaaf98a61 (patch)
treeb0e13d6a98579913abfc80c34ec1f237d77b91e1 /sync/internal_api/public
parent5ed6fe035890a10288da3b99b2b46a7680b4636f (diff)
downloadchromium_src-72ad3c600a38cfa8e8f00cb22e5eddffaaf98a61.zip
chromium_src-72ad3c600a38cfa8e8f00cb22e5eddffaaf98a61.tar.gz
chromium_src-72ad3c600a38cfa8e8f00cb22e5eddffaaf98a61.tar.bz2
Make GenericChangeProcessor upload attachments on startup.
Convert some uses of AttachmentIdList to AttachmentIdSet. Remove the no longer needed UploadAttachments method from GenericChangeProcessor. BUG=372622 Review URL: https://codereview.chromium.org/582913002 Cr-Commit-Position: refs/heads/master@{#295988}
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/read_transaction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sync/internal_api/public/read_transaction.h b/sync/internal_api/public/read_transaction.h
index 3a3dc8d..fe3d133 100644
--- a/sync/internal_api/public/read_transaction.h
+++ b/sync/internal_api/public/read_transaction.h
@@ -6,6 +6,7 @@
#define SYNC_INTERNAL_API_PUBLIC_READ_TRANSACTION_H_
#include "base/compiler_specific.h"
+#include "sync/api/attachments/attachment_id.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base_transaction.h"
@@ -45,6 +46,10 @@ class SYNC_EXPORT ReadTransaction : public BaseTransaction {
void GetDataTypeContext(ModelType type,
sync_pb::DataTypeContext* context) const;
+ // Clears |id_set| and fills it with the ids of attachments that need to be
+ // uploaded to the sync server.
+ void GetAttachmentIdsToUpload(ModelType type, AttachmentIdSet* id_set);
+
private:
void* operator new(size_t size); // Transaction is meant for stack use only.