DescriptionDownloadManager::Observer::OnDownloadCreated
Currently, it is fired when the DownloadItem is created, not when it has its filename, not when it's persisted. Listeners should observe the item for those kinds of state changes.
Those Observers that care about the filename (any of the filenames) should check whether it's empty() before using it. The DownloadItem[Impl] will UpdateObservers when the filename changes.
OnDownloadCreated is not fired for SavePackage downloads. It will be fired when we are comfortable with the user interacting with them, which might not happen until after the SavePackage integration.
ExtensionDownloadsEventRouter filters out temporary downloads, which are downloads whose DownloadCreateInfo.save_info.file_path is not empty(). GData also calls SetIsTemporary after OnDownloadCreated is fired, but only for SavePackage downloads, so EDER is safe there.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148576
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #
Total comments: 6
Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : . #Patch Set 8 : . #Patch Set 9 : . #Patch Set 10 : . #Patch Set 11 : . #Patch Set 12 : . #Patch Set 13 : . #
Total comments: 18
Patch Set 14 : . #Patch Set 15 : . #Patch Set 16 : . #Patch Set 17 : . #
Total comments: 8
Patch Set 18 : . #Patch Set 19 : . #Patch Set 20 : . #Patch Set 21 : . #
Total comments: 12
Patch Set 22 : . #Patch Set 23 : . #Patch Set 24 : . #Patch Set 25 : . #Messages
Total messages: 23 (0 generated)
|