|
[Sync] Add size and crc32c to AttachmentId.
The purpose of this change is to ensure that if a client knows about an
attachment (i.e. has an AttachmentId or AttachmentIdProto) it will know
the attachment's size even if the attachment has never been available on
the local device.
The idea is that by storing size locally, we can simplify remote storage
management.
Move crc32c out of Attachment now that it's part of AttachmentId.
BUG= 464431
Committed: https://crrev.com/23ae3128db0d84a6b1ffa640568a5ec90cfc8808
Cr-Commit-Position: refs/heads/master@{#319794}
Committed: https://crrev.com/4c80a31653994ec6f112985b3493b1809e8e3415
Cr-Commit-Position: refs/heads/master@{#320103}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+221 lines, -121 lines) |
Patch |
|
M |
components/sync_driver/generic_change_processor_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment.h
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment.cc
|
View
|
|
2 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_id.h
|
View
|
1
|
1 chunk |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_id.cc
|
View
|
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_id_unittest.cc
|
View
|
1
|
1 chunk |
+5 lines, -9 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_metadata.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_metadata_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
sync/api/attachments/attachment_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sync/api/sync_data_unittest.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sync/engine/directory_commit_contribution_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sync/engine/directory_update_handler_unittest.cc
|
View
|
1
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/attachment_downloader_impl.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/attachment_downloader_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
11 chunks |
+32 lines, -9 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/attachment_service_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+16 lines, -20 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/attachment_store_test_template.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/fake_attachment_downloader.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/fake_attachment_downloader_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/on_disk_attachment_store.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+51 lines, -10 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/public/attachments/attachment_downloader_impl.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/public/base/attachment_id_proto.h
|
View
|
1
2
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
sync/internal_api/public/base/attachment_id_proto.cc
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
sync/internal_api/public/base/attachment_id_proto_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sync/protocol/attachments.proto
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
sync/syncable/directory_unittest.cc
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
Total messages: 18 (5 generated)
|