Lines Matching refs:downloads

43 // of downloads being seen in a particular state + other events that
53 // cancels our in-progress downloads.)
124 std::vector<DownloadItem*> downloads;
125 download_manager_->SearchDownloads(string16(), &downloads);
127 std::vector<DownloadItem*>::iterator it = downloads.begin();
128 for (; it != downloads.end(); ++it) {
194 // The number of downloads to wait on completing.
197 // The number of downloads entered in final state in initial
201 // construction and return from wait. But some downloads may be in our
208 // all downloads completing.
272 // of downloads in the IN_PROGRESS state and take appropriate
273 // action. If requested, also observes all downloads while iterating.
278 std::vector<DownloadItem*> downloads;
279 download_manager_->SearchDownloads(string16(), &downloads);
280 std::vector<DownloadItem*>::iterator it = downloads.begin();
281 for (; it != downloads.end(); ++it) {
343 // ResourceDispatcherHost and the number of pending downloads on the
448 // directory for downloads that is auto-deleted on destruction.
472 // specified number of downloads to finish.
483 // specified number of downloads to start.
646 void GetDownloads(Browser* browser, std::vector<DownloadItem*>* downloads) {
647 DCHECK(downloads);
649 manager->SearchDownloads(string16(), downloads);
683 // Location of the downloads directory for these tests
823 // header. This also ensures we properly handle empty file downloads.
1002 // tab and then downloads download-test1.lib.
1234 std::vector<DownloadItem*> downloads;
1236 string16(), &downloads);
1237 ASSERT_EQ(1u, downloads.size());
1238 ASSERT_EQ(DownloadItem::IN_PROGRESS, downloads[0]->state());
1242 downloads[0]->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);
1277 // Get details of what downloads have just happened.
1278 std::vector<DownloadItem*> downloads;
1279 GetDownloads(browser(), &downloads);
1280 ASSERT_EQ(1u, downloads.size());
1281 int64 db_handle = downloads[0]->db_handle();