download_item 262 chrome/browser/download/chrome_download_manager_delegate_unittest.cc DownloadItem* download_item, download_item 266 chrome/browser/download/chrome_download_manager_delegate_unittest.cc download_item, download_item 279 chrome/browser/download/chrome_download_manager_delegate_unittest.cc DownloadItem* download_item) { download_item 283 chrome/browser/download/chrome_download_manager_delegate_unittest.cc download_item, download_item 391 chrome/browser/download/chrome_download_manager_delegate_unittest.cc scoped_ptr<content::MockDownloadItem> download_item( download_item 393 chrome/browser/download/chrome_download_manager_delegate_unittest.cc EXPECT_CALL(*download_item, GetTargetFilePath()) download_item 395 chrome/browser/download/chrome_download_manager_delegate_unittest.cc EXPECT_TRUE(CheckForFileExistence(download_item.get())); download_item 397 chrome/browser/download/chrome_download_manager_delegate_unittest.cc download_item.reset(CreateActiveDownloadItem(1)); download_item 398 chrome/browser/download/chrome_download_manager_delegate_unittest.cc EXPECT_CALL(*download_item, GetTargetFilePath()) download_item 400 chrome/browser/download/chrome_download_manager_delegate_unittest.cc EXPECT_FALSE(CheckForFileExistence(download_item.get())); download_item 2945 chrome/browser/download/download_browsertest.cc DownloadItem* download_item = CreateSlowTestDownload(); download_item 2946 chrome/browser/download/download_browsertest.cc ASSERT_TRUE(download_item); download_item 2947 chrome/browser/download/download_browsertest.cc ASSERT_FALSE(download_item->GetTargetFilePath().empty()); download_item 2948 chrome/browser/download/download_browsertest.cc EXPECT_FALSE(download_item->IsPaused()); download_item 2949 chrome/browser/download/download_browsertest.cc EXPECT_NE(DownloadItem::CANCELLED, download_item->GetState()); download_item 2950 chrome/browser/download/download_browsertest.cc download_item->Pause(); download_item 2951 chrome/browser/download/download_browsertest.cc EXPECT_TRUE(download_item->IsPaused()); download_item 2952 chrome/browser/download/download_browsertest.cc download_item->Resume(); download_item 2953 chrome/browser/download/download_browsertest.cc EXPECT_FALSE(download_item->IsPaused()); download_item 2954 chrome/browser/download/download_browsertest.cc EXPECT_NE(DownloadItem::CANCELLED, download_item->GetState()); download_item 2955 chrome/browser/download/download_browsertest.cc download_item->Cancel(true); download_item 2956 chrome/browser/download/download_browsertest.cc EXPECT_EQ(DownloadItem::CANCELLED, download_item->GetState()); download_item 40 chrome/browser/download/download_crx_util.cc const DownloadItem& download_item) { download_item 48 chrome/browser/download/download_crx_util.cc content::WebContents* web_contents = download_item.GetWebContents(); download_item 74 chrome/browser/download/download_crx_util.cc const DownloadItem& download_item) { download_item 84 chrome/browser/download/download_crx_util.cc CreateExtensionInstallPrompt(profile, download_item), download_item 85 chrome/browser/download/download_crx_util.cc WebstoreInstaller::GetAssociatedApproval(download_item))); download_item 91 chrome/browser/download/download_crx_util.cc if (OffStoreInstallAllowedByPrefs(profile, download_item)) { download_item 96 chrome/browser/download/download_crx_util.cc if (extensions::UserScript::IsURLUserScript(download_item.GetURL(), download_item 97 chrome/browser/download/download_crx_util.cc download_item.GetMimeType())) { download_item 98 chrome/browser/download/download_crx_util.cc installer->InstallUserScript(download_item.GetFullPath(), download_item 99 chrome/browser/download/download_crx_util.cc download_item.GetURL()); download_item 102 chrome/browser/download/download_crx_util.cc WebstoreInstaller::GetAssociatedApproval(download_item) != NULL; download_item 103 chrome/browser/download/download_crx_util.cc installer->set_original_mime_type(download_item.GetOriginalMimeType()); download_item 105 chrome/browser/download/download_crx_util.cc installer->set_download_url(download_item.GetURL()); download_item 108 chrome/browser/download/download_crx_util.cc installer->set_original_download_url(download_item.GetOriginalUrl()); download_item 110 chrome/browser/download/download_crx_util.cc installer->InstallCrx(download_item.GetFullPath()); download_item 116 chrome/browser/download/download_crx_util.cc bool IsExtensionDownload(const DownloadItem& download_item) { download_item 117 chrome/browser/download/download_crx_util.cc if (download_item.GetTargetDisposition() == download_item 121 chrome/browser/download/download_crx_util.cc if (download_item.GetMimeType() == extensions::Extension::kMimeType || download_item 122 chrome/browser/download/download_crx_util.cc extensions::UserScript::IsURLUserScript(download_item.GetURL(), download_item 123 chrome/browser/download/download_crx_util.cc download_item.GetMimeType())) { download_item 39 chrome/browser/download/download_crx_util.h const content::DownloadItem& download_item); download_item 43 chrome/browser/download/download_crx_util.h bool IsExtensionDownload(const content::DownloadItem& download_item); download_item 23 chrome/browser/download/download_crx_util_android.cc const DownloadItem& download_item) { download_item 30 chrome/browser/download/download_crx_util_android.cc bool IsExtensionDownload(const DownloadItem& download_item) { download_item 54 chrome/browser/download/download_path_reservation_tracker.cc explicit DownloadItemObserver(DownloadItem* download_item); download_item 280 chrome/browser/download/download_path_reservation_tracker.cc DownloadItemObserver::DownloadItemObserver(DownloadItem* download_item) download_item 281 chrome/browser/download/download_path_reservation_tracker.cc : download_item_(download_item), download_item 282 chrome/browser/download/download_path_reservation_tracker.cc last_target_path_(download_item->GetTargetFilePath()) { download_item 340 chrome/browser/download/download_path_reservation_tracker.cc DownloadItem* download_item, download_item 349 chrome/browser/download/download_path_reservation_tracker.cc new DownloadItemObserver(download_item); download_item 354 chrome/browser/download/download_path_reservation_tracker.cc download_item, download_item 88 chrome/browser/download/download_path_reservation_tracker.h content::DownloadItem* download_item, download_item 77 chrome/browser/download/download_path_reservation_tracker_unittest.cc DownloadItem* download_item, download_item 142 chrome/browser/download/download_path_reservation_tracker_unittest.cc DownloadItem* download_item, download_item 154 chrome/browser/download/download_path_reservation_tracker_unittest.cc download_item, download_item 41 chrome/browser/download/download_shelf_context_menu.cc DownloadItem* download_item, download_item 43 chrome/browser/download/download_shelf_context_menu.cc : download_item_(download_item), download_item 42 chrome/browser/download/download_shelf_context_menu.h content::DownloadItem* download_item() const { return download_item_; } download_item 45 chrome/browser/download/download_shelf_context_menu.h DownloadShelfContextMenu(content::DownloadItem* download_item, download_item 129 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 135 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 142 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 151 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), ShouldOpenFileBasedOnExtension()) download_item 153 chrome/browser/download/download_shelf_unittest.cc ASSERT_TRUE(DownloadItemModel(download_item()) download_item 155 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 170 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), ShouldOpenFileBasedOnExtension()) download_item 172 chrome/browser/download/download_shelf_unittest.cc ASSERT_TRUE(DownloadItemModel(download_item()) download_item 174 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 179 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), GetState()) download_item 181 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), GetAutoOpened()) download_item 194 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), ShouldOpenFileBasedOnExtension()) download_item 196 chrome/browser/download/download_shelf_unittest.cc ASSERT_TRUE(DownloadItemModel(download_item()) download_item 198 chrome/browser/download/download_shelf_unittest.cc shelf()->AddDownload(download_item()); download_item 203 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), GetState()) download_item 205 chrome/browser/download/download_shelf_unittest.cc EXPECT_CALL(*download_item(), ShouldOpenFileBasedOnExtension()) download_item 207 chrome/browser/download/download_shelf_unittest.cc ASSERT_FALSE(DownloadItemModel(download_item()) download_item 341 chrome/browser/download/save_page_browsertest.cc DownloadItem* download_item(items[0]); download_item 343 chrome/browser/download/save_page_browsertest.cc return (expected_url == download_item->GetOriginalUrl()); download_item 245 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item, download_item 248 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetBoolean(kExistsKey, !download_item->GetFileExternallyRemoved()); download_item 249 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetInteger(kIdKey, download_item->GetId()); download_item 250 chrome/browser/extensions/api/downloads/downloads_api.cc const GURL& url = download_item->GetOriginalUrl(); download_item 252 chrome/browser/extensions/api/downloads/downloads_api.cc const GURL& referrer = download_item->GetReferrerUrl(); download_item 256 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->GetTargetFilePath().LossyDisplayName()); download_item 257 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetString(kDangerKey, DangerString(download_item->GetDangerType())); download_item 258 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetString(kStateKey, StateString(download_item->GetState())); download_item 259 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetBoolean(kCanResumeKey, download_item->CanResume()); download_item 260 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetBoolean(kPausedKey, download_item->IsPaused()); download_item 261 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetString(kMimeKey, download_item->GetMimeType()); download_item 262 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetString(kStartTimeKey, TimeToISO8601(download_item->GetStartTime())); download_item 263 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetDouble(kBytesReceivedKey, download_item->GetReceivedBytes()); download_item 264 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetDouble(kTotalBytesKey, download_item->GetTotalBytes()); download_item 266 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item->GetState() == DownloadItem::INTERRUPTED) { download_item 269 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->GetLastReason())); download_item 270 chrome/browser/extensions/api/downloads/downloads_api.cc } else if (download_item->GetState() == DownloadItem::CANCELLED) { download_item 275 chrome/browser/extensions/api/downloads/downloads_api.cc if (!download_item->GetEndTime().is_null()) download_item 276 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetString(kEndTimeKey, TimeToISO8601(download_item->GetEndTime())); download_item 278 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item->TimeRemaining(&time_remaining)) { download_item 282 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadedByExtension* by_ext = DownloadedByExtension::Get(download_item); download_item 297 chrome/browser/extensions/api/downloads/downloads_api.cc json->SetDouble(kFileSizeKey, download_item->GetTotalBytes()); download_item 392 chrome/browser/extensions/api/downloads/downloads_api.cc bool IsNotTemporaryDownloadFilter(const DownloadItem& download_item) { download_item 393 chrome/browser/extensions/api/downloads/downloads_api.cc return !download_item.IsTemporary(); download_item 420 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = manager->GetDownload(id); download_item 421 chrome/browser/extensions/api/downloads/downloads_api.cc if (!download_item && incognito_manager) download_item 422 chrome/browser/extensions/api/downloads/downloads_api.cc download_item = incognito_manager->GetDownload(id); download_item 423 chrome/browser/extensions/api/downloads/downloads_api.cc return download_item; download_item 552 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = manager->GetDownload(*query_in.id.get()); download_item 553 chrome/browser/extensions/api/downloads/downloads_api.cc if (!download_item && incognito_manager) download_item 554 chrome/browser/extensions/api/downloads/downloads_api.cc download_item = incognito_manager->GetDownload(*query_in.id.get()); download_item 555 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item) download_item 556 chrome/browser/extensions/api/downloads/downloads_api.cc all_items.push_back(download_item); download_item 583 chrome/browser/extensions/api/downloads/downloads_api.cc static ExtensionDownloadsEventRouterData* Get(DownloadItem* download_item) { download_item 584 chrome/browser/extensions/api/downloads/downloads_api.cc base::SupportsUserData::Data* data = download_item->GetUserData(kKey); download_item 589 chrome/browser/extensions/api/downloads/downloads_api.cc static void Remove(DownloadItem* download_item) { download_item 590 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->RemoveUserData(kKey); download_item 594 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item, download_item 604 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->SetUserData(kKey, this); download_item 1097 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = *it; download_item 1098 chrome/browser/extensions/api/downloads/downloads_api.cc uint32 download_id = download_item->GetId(); download_item 1120 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1122 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1123 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetState() != DownloadItem::IN_PROGRESS, download_item 1128 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->Pause(); download_item 1141 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1143 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1144 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->IsPaused() && !download_item->CanResume(), download_item 1149 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->Resume(); download_item 1162 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1164 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item && download_item 1165 chrome/browser/extensions/api/downloads/downloads_api.cc (download_item->GetState() == DownloadItem::IN_PROGRESS)) download_item 1166 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->Cancel(true); download_item 1214 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1216 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1217 chrome/browser/extensions/api/downloads/downloads_api.cc Fault((download_item->GetState() != DownloadItem::COMPLETE), download_item 1219 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetFileExternallyRemoved(), download_item 1223 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->DeleteFile( download_item 1252 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1256 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1257 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetState() != DownloadItem::IN_PROGRESS, download_item 1259 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(!download_item->IsDangerous(), errors::kNotDangerous, &error_) || download_item 1283 chrome/browser/extensions/api/downloads/downloads_api.cc download_item, download_item 1297 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1299 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1300 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetState() != DownloadItem::IN_PROGRESS, download_item 1305 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->ValidateDangerousDownload(); download_item 1308 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->Remove(); download_item 1324 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1326 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_)) download_item 1328 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->ShowDownloadInShell(); download_item 1356 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1358 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1360 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetState() != DownloadItem::COMPLETE, download_item 1366 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->OpenDownload(); download_item 1379 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1383 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1388 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->GetTargetFilePath(), IconLoader::NORMAL); download_item 1394 chrome/browser/extensions/api/downloads/downloads_api.cc DragDownloadItem(download_item, icon, view); download_item 1478 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItem* download_item = download_item 1480 chrome/browser/extensions/api/downloads/downloads_api.cc if (InvalidId(download_item, &error_) || download_item 1481 chrome/browser/extensions/api/downloads/downloads_api.cc Fault(download_item->GetTargetFilePath().empty(), download_item 1497 chrome/browser/extensions/api/downloads/downloads_api.cc download_item->GetTargetFilePath(), download_item 1746 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadManager* manager, DownloadItem* download_item) { download_item 1748 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item->IsTemporary()) download_item 1763 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadItemToJSON(download_item, profile_)); download_item 1768 chrome/browser/extensions/api/downloads/downloads_api.cc if (!ExtensionDownloadsEventRouterData::Get(download_item) && download_item 1772 chrome/browser/extensions/api/downloads/downloads_api.cc new ExtensionDownloadsEventRouterData(download_item, json_item.Pass()); download_item 1777 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadManager* manager, DownloadItem* download_item) { download_item 1782 chrome/browser/extensions/api/downloads/downloads_api.cc ExtensionDownloadsEventRouterData::Get(download_item); download_item 1783 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item->IsTemporary() || download_item 1791 chrome/browser/extensions/api/downloads/downloads_api.cc download_item, download_item 1795 chrome/browser/extensions/api/downloads/downloads_api.cc download_item, profile_)); download_item 1797 chrome/browser/extensions/api/downloads/downloads_api.cc delta->SetInteger(kIdKey, download_item->GetId()); download_item 1847 chrome/browser/extensions/api/downloads/downloads_api.cc DownloadManager* manager, DownloadItem* download_item) { download_item 1849 chrome/browser/extensions/api/downloads/downloads_api.cc if (download_item->IsTemporary()) download_item 1855 chrome/browser/extensions/api/downloads/downloads_api.cc static_cast<int>(download_item->GetId()))); download_item 361 chrome/browser/extensions/api/downloads/downloads_api.h content::DownloadItem* download_item) OVERRIDE; download_item 364 chrome/browser/extensions/api/downloads/downloads_api.h content::DownloadItem* download_item) OVERRIDE; download_item 367 chrome/browser/extensions/api/downloads/downloads_api.h content::DownloadItem* download_item) OVERRIDE; download_item 575 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc std::string DownloadItemIdAsArgList(const DownloadItem* download_item) { download_item 576 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc return base::StringPrintf("[%d]", download_item->GetId()); download_item 820 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItem* download_item = CreateSlowTestDownload(); download_item 821 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_TRUE(download_item); download_item 822 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->GetOpened()); download_item 823 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->GetOpenWhenComplete()); download_item 830 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetURL().spec().c_str()))); download_item 836 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item)).c_str()); download_item 839 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->GetOpened()); download_item 845 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item)).c_str()); download_item 846 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->GetOpened()); download_item 851 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 852 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_TRUE(download_item->GetOpened()); download_item 857 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItem* download_item = CreateSlowTestDownload(); download_item 858 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_TRUE(download_item); download_item 864 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 865 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_TRUE(download_item->IsPaused()); download_item 870 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item)); download_item 875 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 876 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_TRUE(download_item->IsPaused()); download_item 880 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 881 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->IsPaused()); download_item 885 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 886 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_FALSE(download_item->IsPaused()); download_item 890 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 891 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_TRUE(download_item->IsPaused()); download_item 895 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 896 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_EQ(DownloadItem::CANCELLED, download_item->GetState()); download_item 900 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItemIdAsArgList(download_item))); download_item 901 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_EQ(DownloadItem::CANCELLED, download_item->GetState()); download_item 905 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc new DownloadsPauseFunction(), DownloadItemIdAsArgList(download_item)); download_item 910 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc new DownloadsResumeFunction(), DownloadItemIdAsArgList(download_item)); download_item 928 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc int id = download_item->GetId(); download_item 936 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item = NULL; download_item 960 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc DownloadItem* download_item = CreateSlowTestDownload(); download_item 961 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_TRUE(download_item); download_item 962 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_FALSE(download_item->GetTargetFilePath().empty()); download_item 964 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetId())); download_item 971 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::NORMAL, "foo"), download_item 972 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc base::StringPrintf("[%d, {}]", download_item->GetId()), &result_string)); download_item 976 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::SMALL, "foo"), download_item 977 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc base::StringPrintf("[%d, {\"size\": 16}]", download_item->GetId()), download_item 982 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::NORMAL, "foo"), download_item 987 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc EXPECT_EQ(DownloadItem::COMPLETE, download_item->GetState()); download_item 989 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::NORMAL, "foo"), download_item 994 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::NORMAL, "foo"), download_item 998 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item = CreateSlowTestDownload(); download_item 999 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_TRUE(download_item); download_item 1000 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_FALSE(download_item->GetTargetFilePath().empty()); download_item 1001 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc args32 = base::StringPrintf("[%d, {\"size\": 32}]", download_item->GetId()); download_item 1005 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->Cancel(true); download_item 1006 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ASSERT_FALSE(download_item->GetTargetFilePath().empty()); download_item 1011 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->GetTargetFilePath(), IconLoader::NORMAL, "foo"), download_item 1018 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc MockedGetFileIconFunction(download_item->GetTargetFilePath(), download_item 1025 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc int id = download_item->GetId(); download_item 1026 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item->Remove(); download_item 1027 chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc download_item = NULL; download_item 108 chrome/browser/ui/gtk/download/download_item_gtk.cc DownloadItem* download_item) download_item 115 chrome/browser/ui/gtk/download/download_item_gtk.cc download_model_(download_item), download_item 311 chrome/browser/ui/gtk/download/download_item_gtk.cc void DownloadItemGtk::OnDownloadUpdated(DownloadItem* download_item) { download_item 312 chrome/browser/ui/gtk/download/download_item_gtk.cc DCHECK_EQ(download(), download_item); download_item 377 chrome/browser/ui/gtk/download/download_item_gtk.cc void DownloadItemGtk::OnDownloadDestroyed(DownloadItem* download_item) { download_item 378 chrome/browser/ui/gtk/download/download_item_gtk.cc DCHECK_EQ(download(), download_item); download_item 44 chrome/browser/ui/gtk/download/download_item_gtk.h content::DownloadItem* download_item); download_item 14 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc DownloadItemGtk* download_item, download_item 16 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc : DownloadShelfContextMenu(download_item->download(), navigator), download_item 17 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc download_item_gtk_(download_item) { download_item 19 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.h DownloadShelfContextMenuGtk(DownloadItemGtk* download_item, download_item 283 chrome/browser/ui/gtk/download/download_shelf_gtk.cc void DownloadShelfGtk::RemoveDownloadItem(DownloadItemGtk* download_item) { download_item 284 chrome/browser/ui/gtk/download/download_shelf_gtk.cc DCHECK(download_item); download_item 286 chrome/browser/ui/gtk/download/download_shelf_gtk.cc find(download_items_.begin(), download_items_.end(), download_item); download_item 289 chrome/browser/ui/gtk/download/download_shelf_gtk.cc delete download_item; download_item 77 chrome/browser/ui/gtk/download/download_shelf_gtk.h void RemoveDownloadItem(DownloadItemGtk* download_item); download_item 95 chrome/browser/ui/views/download/download_item_view.cc DownloadItemView::DownloadItemView(DownloadItem* download_item, download_item 107 chrome/browser/ui/views/download/download_item_view.cc model_(download_item), download_item 255 chrome/browser/ui/views/download/download_item_view.cc void DownloadItemView::OnDownloadUpdated(DownloadItem* download_item) { download_item 256 chrome/browser/ui/views/download/download_item_view.cc DCHECK_EQ(download(), download_item); download_item 17 chrome/browser/ui/views/download/download_shelf_context_menu_view.cc content::DownloadItem* download_item, download_item 19 chrome/browser/ui/views/download/download_shelf_context_menu_view.cc : DownloadShelfContextMenu(download_item, navigator) { download_item 31 chrome/browser/ui/views/download/download_shelf_context_menu_view.h DownloadShelfContextMenuView(content::DownloadItem* download_item, download_item 116 chrome/browser/ui/webui/downloads_dom_handler.cc content::DownloadItem* download_item, download_item 121 chrome/browser/ui/webui/downloads_dom_handler.cc DownloadItemModel download_model(download_item); download_item 125 chrome/browser/ui/webui/downloads_dom_handler.cc "started", static_cast<int>(download_item->GetStartTime().ToTimeT())); download_item 128 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetStartTime(), NULL)); download_item 130 chrome/browser/ui/webui/downloads_dom_handler.cc "date_string", base::TimeFormatShortDate(download_item->GetStartTime())); download_item 131 chrome/browser/ui/webui/downloads_dom_handler.cc file_value->SetInteger("id", download_item->GetId()); download_item 133 chrome/browser/ui/webui/downloads_dom_handler.cc base::FilePath download_path(download_item->GetTargetFilePath()); download_item 138 chrome/browser/ui/webui/downloads_dom_handler.cc DownloadedByExtension* by_ext = DownloadedByExtension::Get(download_item); download_item 147 chrome/browser/ui/webui/downloads_dom_handler.cc Profile::FromBrowserContext(download_item->GetBrowserContext()))-> download_item 155 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetFileNameToReportUser().LossyDisplayName(); download_item 158 chrome/browser/ui/webui/downloads_dom_handler.cc file_value->SetString("url", download_item->GetURL().spec()); download_item 161 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetTotalBytes())); download_item 163 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetFileExternallyRemoved()); download_item 165 chrome/browser/ui/webui/downloads_dom_handler.cc file_value->SetBoolean("resume", download_item->CanResume()); download_item 167 chrome/browser/ui/webui/downloads_dom_handler.cc switch (download_item->GetState()) { download_item 169 chrome/browser/ui/webui/downloads_dom_handler.cc if (download_item->IsDangerous()) { download_item 172 chrome/browser/ui/webui/downloads_dom_handler.cc DCHECK(download_item->GetDangerType() == download_item 174 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetDangerType() == download_item 176 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetDangerType() == download_item 178 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetDangerType() == download_item 180 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetDangerType() == download_item 182 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetDangerType() == download_item 185 chrome/browser/ui/webui/downloads_dom_handler.cc GetDangerTypeString(download_item->GetDangerType()); download_item 187 chrome/browser/ui/webui/downloads_dom_handler.cc } else if (download_item->IsPaused()) { download_item 196 chrome/browser/ui/webui/downloads_dom_handler.cc static_cast<int>(download_item->PercentComplete())); download_item 198 chrome/browser/ui/webui/downloads_dom_handler.cc static_cast<int>(download_item->GetReceivedBytes())); download_item 208 chrome/browser/ui/webui/downloads_dom_handler.cc static_cast<int>(download_item->PercentComplete())); download_item 210 chrome/browser/ui/webui/downloads_dom_handler.cc static_cast<int>(download_item->GetReceivedBytes())); download_item 214 chrome/browser/ui/webui/downloads_dom_handler.cc download_item->GetLastReason() && !download_item->CanResume()) download_item 224 chrome/browser/ui/webui/downloads_dom_handler.cc DCHECK(!download_item->IsDangerous()); download_item 312 chrome/browser/ui/webui/downloads_dom_handler.cc content::DownloadManager* manager, content::DownloadItem* download_item) { download_item 313 chrome/browser/ui/webui/downloads_dom_handler.cc if (IsDownloadDisplayable(*download_item)) download_item 319 chrome/browser/ui/webui/downloads_dom_handler.cc content::DownloadItem* download_item) { download_item 320 chrome/browser/ui/webui/downloads_dom_handler.cc if (IsDownloadDisplayable(*download_item)) { download_item 326 chrome/browser/ui/webui/downloads_dom_handler.cc all_items.push_back(download_item); download_item 335 chrome/browser/ui/webui/downloads_dom_handler.cc download_item, download_item 344 chrome/browser/ui/webui/downloads_dom_handler.cc content::DownloadItem* download_item) { download_item 582 chrome/browser/ui/webui/downloads_dom_handler.cc const base::ListValue& download_item) { download_item 583 chrome/browser/ui/webui/downloads_dom_handler.cc web_ui()->CallJavascriptFunction("downloadUpdated", download_item); download_item 43 chrome/browser/ui/webui/downloads_dom_handler.h content::DownloadItem* download_item) OVERRIDE; download_item 46 chrome/browser/ui/webui/downloads_dom_handler.h content::DownloadItem* download_item) OVERRIDE; download_item 49 chrome/browser/ui/webui/downloads_dom_handler.h content::DownloadItem* download_item) OVERRIDE; download_item 238 content/browser/android/download_controller_android_impl.cc DownloadItem* download_item) { download_item 240 content/browser/android/download_controller_android_impl.cc if (!download_item->GetWebContents()) download_item 246 content/browser/android/download_controller_android_impl.cc download_item->AddObserver(this); download_item 249 content/browser/android/download_controller_android_impl.cc GetContentViewCoreFromWebContents(download_item->GetWebContents()); download_item 255 content/browser/android/download_controller_android_impl.cc ConvertUTF8ToJavaString(env, download_item->GetMimeType()); download_item 257 content/browser/android/download_controller_android_impl.cc env, download_item->GetTargetFilePath().BaseName().value()); download_item 80 content/browser/android/download_controller_android_impl.h virtual void OnDownloadStarted(DownloadItem* download_item) OVERRIDE; download_item 57 content/browser/download/download_item_impl_delegate.cc DownloadItemImpl* download_item) {} download_item 67 content/browser/download/download_item_impl_delegate.h virtual void CheckForFileRemoval(DownloadItemImpl* download_item); download_item 452 content/browser/download/download_manager_impl.cc void DownloadManagerImpl::CheckForFileRemoval(DownloadItemImpl* download_item) { download_item 454 content/browser/download/download_manager_impl.cc if ((download_item->GetState() == DownloadItem::COMPLETE) && download_item 455 content/browser/download/download_manager_impl.cc !download_item->GetFileExternallyRemoved() && download_item 458 content/browser/download/download_manager_impl.cc download_item, download_item 460 content/browser/download/download_manager_impl.cc weak_factory_.GetWeakPtr(), download_item->GetId())); download_item 506 content/browser/download/download_manager_impl.cc DownloadItemImpl* download_item = item_factory_->CreateSavePageItem( download_item 514 content/browser/download/download_manager_impl.cc downloads_[download_item->GetId()] = download_item; download_item 516 content/browser/download/download_manager_impl.cc this, download_item)); download_item 518 content/browser/download/download_manager_impl.cc item_created.Run(download_item); download_item 522 content/browser/download/download_manager_impl.cc DownloadItem* download_item) { download_item 524 content/browser/download/download_manager_impl.cc OnSavePackageSuccessfullyFinished(this, download_item)); download_item 57 content/browser/download/download_manager_impl.h void OnSavePackageSuccessfullyFinished(DownloadItem* download_item); download_item 153 content/browser/download/download_manager_impl.h virtual void CheckForFileRemoval(DownloadItemImpl* download_item) OVERRIDE; download_item 46 content/browser/download/download_net_log_parameters.cc const DownloadItem* download_item, download_item 53 content/browser/download/download_net_log_parameters.cc dict->SetString("id", base::Int64ToString(download_item->GetId())); download_item 54 content/browser/download/download_net_log_parameters.cc dict->SetString("original_url", download_item->GetOriginalUrl().spec()); download_item 55 content/browser/download/download_net_log_parameters.cc dict->SetString("final_url", download_item->GetURL().spec()); download_item 58 content/browser/download/download_net_log_parameters.cc download_danger_names[download_item->GetDangerType()]); download_item 60 content/browser/download/download_net_log_parameters.cc base::Int64ToString(download_item->GetReceivedBytes())); download_item 61 content/browser/download/download_net_log_parameters.cc dict->SetBoolean("has_user_gesture", download_item->HasUserGesture()); download_item 30 content/browser/download/download_net_log_parameters.h const DownloadItem* download_item, download_item 30 content/public/browser/android/download_controller_android.h virtual void OnDownloadStarted(DownloadItem* download_item) = 0;