Lines Matching refs:shell

33 #include "content/shell/browser/shell.h"
34 #include "content/shell/browser/shell_browser_context.h"
35 #include "content/shell/browser/shell_download_manager_delegate.h"
36 #include "content/shell/browser/shell_network_delegate.h"
103 static DownloadManagerImpl* DownloadManagerForShell(Shell* shell) {
108 shell->web_contents()->GetBrowserContext()));
582 DownloadManager* manager = DownloadManagerForShell(shell());
607 Shell* shell, int num_downloads) {
608 DownloadManager* download_manager = DownloadManagerForShell(shell);
616 Shell* shell, int num_downloads) {
617 DownloadManager* download_manager = DownloadManagerForShell(shell);
622 Shell* shell, int num_downloads) {
623 DownloadManager* download_manager = DownloadManagerForShell(shell);
630 DownloadManagerForShell(shell())->SetDownloadFileFactoryForTesting(
646 Shell* shell,
649 scoped_ptr<DownloadTestObserver> observer(CreateWaiter(shell, 1));
650 NavigateToURL(shell, url);
687 CreateInProgressWaiter(shell(), 1));
688 NavigateToURL(shell(), url);
691 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
712 CreateInterruptedWaiter(shell(), 1));
713 NavigateToURL(shell(), test_server()->GetURL("download-finish"));
770 CreateInProgressWaiter(shell(), 1));
771 NavigateToURL(shell(), GURL(URLRequestSlowDownloadJob::kUnknownSizeUrl));
775 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
782 new DownloadTestFlushObserver(DownloadManagerForShell(shell())));
797 CreateInProgressWaiter(shell(), 1));
798 NavigateToURL(shell(), GURL(URLRequestSlowDownloadJob::kUnknownSizeUrl));
802 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
811 NavigateToURLAndWaitForDownload(shell(), url, DownloadItem::COMPLETE);
815 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
824 scoped_ptr<DownloadTestObserver> observer2(CreateWaiter(shell(), 1));
825 NavigateToURL(shell(), GURL(URLRequestSlowDownloadJob::kFinishDownloadUrl));
866 NavigateToURLAndWaitForDownload(shell(), url, DownloadItem::COMPLETE);
876 DownloadManagerImpl* download_manager(DownloadManagerForShell(shell()));
882 NavigateToURL(shell(), net::URLRequestMockHTTPJob::GetMockUrl(file));
918 DownloadManagerImpl* download_manager(DownloadManagerForShell(shell()));
931 NavigateToURL(shell(), net::URLRequestMockHTTPJob::GetMockUrl(file));
976 CreateInProgressWaiter(shell(), 1));
977 NavigateToURL(shell(), GURL(URLRequestSlowDownloadJob::kUnknownSizeUrl));
982 DownloadManagerForShell(shell())->GetAllDownloads(&items);
991 DownloadManagerForShell(shell()));
999 DownloadManagerForShell(shell())))
1018 DownloadManagerForShell(shell())->Shutdown();
1028 DownloadManagerImpl* download_manager(DownloadManagerForShell(shell()));
1041 NavigateToURL(shell(), net::URLRequestMockHTTPJob::GetMockUrl(file));
1062 DownloadManagerForShell(shell())->GetAllDownloads(&items);
1078 DownloadManagerForShell(shell())->Shutdown();
1090 MockDownloadManagerObserver dm_observer(DownloadManagerForShell(shell()));
1352 TestFileErrorInjector::Create(DownloadManagerForShell(shell())));
1365 CreateInterruptedWaiter(shell(), 1));
1403 TestFileErrorInjector::Create(DownloadManagerForShell(shell())));
1416 CreateInterruptedWaiter(shell(), 1));
1455 TestFileErrorInjector::Create(DownloadManagerForShell(shell())));
1457 DownloadManagerForShell(shell())->RemoveAllDownloads();
1469 CreateInterruptedWaiter(shell(), 1));
1568 CreateWaiter(shell(), 1));
1594 MockDownloadManagerObserver dm_observer(DownloadManagerForShell(shell()));
1626 NavigateToURLAndWaitForDownload(shell(), url2, DownloadItem::COMPLETE);
1641 MockDownloadManagerObserver dm_observer(DownloadManagerForShell(shell()));
1674 NavigateToURLAndWaitForDownload(shell(), url2, DownloadItem::COMPLETE);
1698 DownloadUrlParameters::FromWebContents(shell()->web_contents(), url));
1699 scoped_ptr<DownloadTestObserver> observer(CreateWaiter(shell(), 1));
1700 DownloadManagerForShell(shell())->DownloadUrl(dl_params.Pass());
1707 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
1713 content::GetCookies(shell()->web_contents()->GetBrowserContext(),
1749 shell(), referrer_url, DownloadItem::COMPLETE);
1752 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
1797 shell(), referrer_url, DownloadItem::COMPLETE);
1800 DownloadManagerForShell(shell())->GetAllDownloads(&downloads);
1819 NavigateToURLAndWaitForDownload(shell(), url, DownloadItem::COMPLETE);