DescriptionInstantiate AttachmentDownloader and use it in AttachmentServiceImpl
GetOrDownloadAttachments creates state object that tracks set of attachments
for which requests are still pending. Once AttachmentStore::Read finishes
AttachmentServiceImpl calls AttachmentDownloader to download attachments that
were not found locally.
Once all calls to Downloader finish consumer callback is called with results.
I used AttachmentIdSet in this code but didn't update AttachmentIdList to
AttachmentIdSet in other places. I'd rather do it in separate change.
R=maniscalco@chromium.org
BUG=376073
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274164
Patch Set 1 #
Total comments: 37
Patch Set 2 : Fix issues after Nick's feedback. #Patch Set 3 : Fix components unittest #
Messages
Total messages: 12 (0 generated)
|