Lines Matching defs:download

13 #include "chrome/browser/download/download_item.h"
14 #include "chrome/browser/download/download_file_manager.h"
15 #include "chrome/browser/download/download_manager.h"
16 #include "chrome/browser/download/download_prefs.h"
17 #include "chrome/browser/download/download_shelf.h"
41 // specifically targeted download tests need finer granularity on waiting.
44 // may occur in the download system. That state will be recorded if it
58 // download items have entered state |download_finished_state|.
112 virtual void OnDownloadUpdated(DownloadItem* download) {
113 if (download->state() == download_finished_state_)
114 DownloadInFinalState(download);
117 virtual void OnDownloadOpened(DownloadItem* download) {}
121 // Regenerate DownloadItem observers. If there are any download items
160 // Called when we know that a download item is in a final state.
164 void DownloadInFinalState(DownloadItem* download) {
165 if (finished_downloads_.find(download) != finished_downloads_.end()) {
166 // We've already seen terminal state on this download.
171 finished_downloads_.insert(download);
181 // The observed download manager.
225 // * There are no IN_PROGRESS download items remaining on the
253 virtual void OnDownloadUpdated(DownloadItem* download) {
257 virtual void OnDownloadOpened(DownloadItem* download) {}
419 // Set up the temporary download folder.
494 // Download |url|, then wait for the download to finish.
498 // open when the download is finished, or if we don't care.
511 // |browser_test_flags|, but will not wait for the download to finish.
516 // Waits for the download to complete.
526 // Download a file in the current tab, then wait for the download to finish.
538 // Should only be called when the download is known to have finished
603 // TODO(ahendrickson): check download status text before downloading.
625 // TODO(ahendrickson): check download status text after downloading.
627 // Make sure the download shelf is showing.
652 // Figure out if the appropriate download visibility was done. A
654 // a webui panel is used instead of the download shelf; the
672 // On ChromeOS, a download panel is created to display
673 // download information, and this counts as a window.
745 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
762 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
783 // download directory because of http://crbug.com/62099. No big loss; it
788 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
798 // be anything in the download shelf and so it should not be visible.
802 // Access a file with a viewable mime-type, verify that a download
806 FilePath file(FILE_PATH_LITERAL("download-test2.html"));
813 // Check that we did not download the web page.
822 // download tab opened and the file exists as the filename specified in the
824 // The download shelf should be visible in the current tab.
827 FilePath file(FILE_PATH_LITERAL("download-test3.gif"));
829 FilePath download_file(FILE_PATH_LITERAL("download-test3-attachment.gif"));
842 // Test that the download shelf is per-window by starting a download in one
847 FilePath file(FILE_PATH_LITERAL("download-test3.gif"));
849 FilePath download_file(FILE_PATH_LITERAL("download-test3-attachment.gif"));
866 // Hide the download shelf.
874 // The download shelf should not be visible.
882 // The test will first attempt to download a file; but the server will "pause"
884 // "download-finish". At that time, the download will finish.
899 // Also check that the download shelf is not visible after closing the
912 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
922 // Verify that the download shelf is showing for the Incognito window.
938 // Verify that the regular window does not have a download shelf.
942 // On ChromeOS it's a popup rather than a download shelf, and it sticks
952 // Navigate to a new background page, but don't download. Confirm that the
953 // download shelf is not visible and that we have two tabs.
958 FilePath file1(FILE_PATH_LITERAL("download-test2.html"));
974 // automatically, and that the download shelf is visible in the current tab.
979 // closed when the download begins.
980 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
989 // When the download finishes, we should still have one tab.
996 // Open a web page in the current tab, then download a file in another tab via
998 // Verify that we have 2 tabs, and the download shelf is visible in the current
1002 // tab and then downloads download-test1.lib.
1014 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1021 // When the download finishes, we should have two tabs.
1029 // then download a file in the new tab.
1030 // Verify that we have 2 tabs, and the download shelf is visible in the current
1055 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1063 // When the download finishes, we should have two tabs.
1070 // Open a web page in the current tab, then download a file via Javascript,
1072 // Verify that we have 1 tab, and the download shelf is visible.
1075 // tab with download-test1.lib in the URL. When the URL is determined to be
1076 // a download, the tab is closed automatically.
1088 // The file to download is "download-test1.lib".
1089 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1096 // When the download finishes, we should still have one tab.
1104 // download a file in a new tab, which is closed automatically when the
1105 // download begins.
1106 // Verify that we have 1 tab, and the download shelf is visible.
1108 // The download_page4.html page contains a form with download-test1.lib as the
1121 // when the download begins.
1122 // The file to download is "download-test1.lib".
1123 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1131 // When the download finishes, we should still have one tab.
1139 // Verify that we have 2 windows, and the download shelf is not visible in the
1142 // Verify that we have 1 window, and the download shelf is not visible.
1147 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
1161 // When the download finishes, the download shelf SHOULD NOT be visible in
1166 // Except on chromeos the download UI isn't window-specific.
1172 // The download shelf SHOULD be visible in the second window.
1199 // Otherwise, the download shelf should not be visible in the
1212 // DownloadsObserver only finishing when the new download has reached
1215 // download shelf to be visible). By the pure semantics of
1221 // OnCreateDownloadEntryComplete, at which point the download item will
1227 // Create a download, wait until it's started, and confirm
1241 // Cancel the download and wait for download system quiesce.
1253 // Using "DownloadItem::Remove" follows the discard dangerous download path,
1265 // Confirm a download makes it into the history properly.
1268 FilePath file(FILE_PATH_LITERAL("download-test1.lib"));