Open Bug 941009 Opened 11 years ago Updated 1 year ago

[meta] Move Places integration from DownloadIntegration to DownloadHistory.jsm

Categories

(Toolkit :: Downloads API, task, P3)

task

Tracking

()

People

(Reporter: Paolo, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

The portions of the DownloadIntegration module that interact with Places should be moved to a separate Desktop-specific module, integrated using the system from bug 899013.
nsIDownloadHistory had been created for the purposes of integrating downloads with any underlying history implementation
The purpose here is to separate the code that is unused in products other than Desktop, including history observers, for which #ifdefs have been introduced now in B2G. This could be more likely a Desktop-specific module containing some Places integration code, rather than a Places-specific module, though we'll see what works best when we get there.
The new DownloadHistory.jsm module can be the main interface for all the interactions between Download objects and history. It depends on Places and provides Downloads API views on the data. I don't know if going forward the nsIDownloadHistory interface should still exist separately. Even if DownloadHistory.jsm could end up depending on how the actual data is stored in Places, another level of indirection is probably unneeded.
Depends on: 830415
Keywords: meta
Priority: -- → P3
Summary: Move Places integration from DownloadIntegration to a different module → Move Places integration from DownloadIntegration to DownloadHistory.jsm
Type: defect → task
Summary: Move Places integration from DownloadIntegration to DownloadHistory.jsm → [meta] Move Places integration from DownloadIntegration to DownloadHistory.jsm
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.