|
Store attachment crc in AttachmentStore
In this change:
- Add crc into Attachment class
- Rename Attachment's Create/CreateWithId to CreateNew/RestoreExisting.
- Refactor how AttachmentDownloader extracts and checks crc. Now it also
needs to pass crc to Attachment construction
- Store crc in RecordMetadata
- Check crc when reading attachment from AttachmentStore.
BUG= 417794
R=maniscalco@chromium.org
Committed: https://crrev.com/0c166910d0276c52650008f0d9464be27d146782
Cr-Commit-Position: refs/heads/master@{#304123}
Total comments: 3
Total comments: 39
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+265 lines, -106 lines) |
Patch |
 |
M |
sync/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/attachment.h
|
View
|
1
2
|
2 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/attachment.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/attachment_unittest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_downloader_impl.cc
|
View
|
1
2
|
6 chunks |
+42 lines, -38 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_downloader_impl_unittest.cc
|
View
|
|
5 chunks |
+37 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_service_impl_unittest.cc
|
View
|
1
2
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_store_test_template.h
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_uploader_impl.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_uploader_impl_unittest.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/attachments/attachment_util.cc
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/fake_attachment_downloader.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/on_disk_attachment_store.cc
|
View
|
1
2
|
3 chunks |
+29 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
|
View
|
1
2
|
2 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/proto/attachment_store.proto
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/attachments/attachment_downloader_impl.h
|
View
|
1
2
|
3 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/attachments/attachment_uploader_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/attachments/attachment_util.h
|
View
|
1
2
3
4
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (1 generated)
|