/external/chromium_org/chrome/browser/download/ |
D | download_shelf_context_menu.cc | 47 : download_item_(download_item), in DownloadShelfContextMenu() 49 DCHECK(download_item_); in DownloadShelfContextMenu() 50 download_item_->AddObserver(this); in DownloadShelfContextMenu() 64 if (!download_item_) in GetMenuModel() 67 DownloadItemModel download_model(download_item_); in GetMenuModel() 76 else if (download_item_->GetState() == DownloadItem::COMPLETE) in GetMenuModel() 78 else if (download_item_->GetState() == DownloadItem::INTERRUPTED) in GetMenuModel() 86 if (!download_item_) in IsCommandIdEnabled() 91 return download_item_->CanShowInFolder(); in IsCommandIdEnabled() 94 return download_item_->CanOpenDownload() && in IsCommandIdEnabled() [all …]
|
D | download_shelf_unittest.cc | 41 return download_item_.get(); in download_item() 66 scoped_ptr<content::MockDownloadItem> download_item_; member in __anonf20a5fe50111::DownloadShelfTest 75 download_item_.reset(new ::testing::NiceMock<content::MockDownloadItem>()); in DownloadShelfTest() 76 ON_CALL(*download_item_, GetAutoOpened()).WillByDefault(Return(false)); in DownloadShelfTest() 77 ON_CALL(*download_item_, GetMimeType()).WillByDefault(Return("text/plain")); in DownloadShelfTest() 78 ON_CALL(*download_item_, GetOpenWhenComplete()).WillByDefault(Return(false)); in DownloadShelfTest() 79 ON_CALL(*download_item_, GetTargetDisposition()) in DownloadShelfTest() 81 ON_CALL(*download_item_, GetURL()) in DownloadShelfTest() 83 ON_CALL(*download_item_, GetState()) in DownloadShelfTest() 85 ON_CALL(*download_item_, IsTemporary()).WillByDefault(Return(false)); in DownloadShelfTest() [all …]
|
D | download_path_reservation_tracker.cc | 63 DownloadItem* download_item_; member in __anon1c429cfd0111::DownloadItemObserver 288 : download_item_(download_item), in DownloadItemObserver() 291 download_item_->AddObserver(this); in DownloadItemObserver() 295 download_item_->RemoveObserver(this); in ~DownloadItemObserver()
|
D | download_shelf_context_menu.h | 42 content::DownloadItem* download_item() const { return download_item_; } in download_item() 93 content::DownloadItem* download_item_; variable
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | download_handler_unittest.cc | 61 EXPECT_CALL(download_item_, GetState()) in SetUp() 75 content::MockDownloadItem download_item_; member in drive::DownloadHandlerTest 86 &download_item_, in TEST_F() 92 EXPECT_FALSE(download_handler_->IsDriveDownload(&download_item_)); in TEST_F() 106 &download_item_, in TEST_F() 112 ASSERT_TRUE(download_handler_->IsDriveDownload(&download_item_)); in TEST_F() 113 EXPECT_EQ(drive_path, download_handler_->GetTargetPath(&download_item_)); in TEST_F() 128 &download_item_, in TEST_F() 155 EXPECT_FALSE(download_handler_->IsDriveDownload(&download_item_)); in TEST_F() 158 download_handler_->SetDownloadParams(drive_path, &download_item_); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/download/ |
D | download_item_controller_unittest.mm | 75 download_item_.reset(new ::testing::NiceMock<content::MockDownloadItem>); 76 ON_CALL(*download_item_, GetState()) 78 ON_CALL(*download_item_, GetFileNameToReportUser()) 80 ON_CALL(*download_item_, GetDangerType()) 82 ON_CALL(*download_item_, GetTargetFilePath()) 84 ON_CALL(*download_item_, GetLastReason()) 86 ON_CALL(*download_item_, GetURL()).WillByDefault(ReturnRefOfCopy(GURL())); 87 ON_CALL(*download_item_, GetReferrerUrl()) 89 ON_CALL(*download_item_, GetTargetDisposition()).WillByDefault( 94 download_item_.reset(); [all …]
|
/external/chromium_org/content/browser/download/ |
D | drag_download_file.cc | 47 download_item_(NULL), in DragDownloadFileUI() 76 if (download_item_) in Cancel() 77 download_item_->Cancel(true); in Cancel() 88 if (download_item_) in ~DragDownloadFileUI() 89 download_item_->RemoveObserver(this); in ~DragDownloadFileUI() 101 download_item_ = item; in OnDownloadStarted() 102 download_item_->AddObserver(this); in OnDownloadStarted() 108 DCHECK_EQ(download_item_, item); in OnDownloadUpdated() 109 DownloadItem::DownloadState state = download_item_->GetState(); in OnDownloadUpdated() 118 download_item_->RemoveObserver(this); in OnDownloadUpdated() [all …]
|
/external/chromium_org/chrome/browser/extensions/ |
D | webstore_installer.cc | 287 download_item_(NULL), in WebstoreInstaller() 395 if (download_item_) { in OnExtensionInstalled() 396 download_item_->RemoveObserver(this); in OnExtensionInstalled() 397 download_item_->Remove(); in OnExtensionInstalled() 398 download_item_ = NULL; in OnExtensionInstalled() 434 if (download_item_) { in ~WebstoreInstaller() 435 download_item_->RemoveObserver(this); in ~WebstoreInstaller() 436 download_item_ = NULL; in ~WebstoreInstaller() 452 download_item_ = item; in OnDownloadStarted() 453 download_item_->AddObserver(this); in OnDownloadStarted() [all …]
|
D | webstore_installer.h | 270 content::DownloadItem* download_item_;
|