DownloadDatabase 103 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateInvalid = -1; DownloadDatabase 104 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateInProgress = 0; DownloadDatabase 105 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateComplete = 1; DownloadDatabase 106 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateCancelled = 2; DownloadDatabase 107 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateBug140687 = 3; DownloadDatabase 108 chrome/browser/history/download_database.cc const int DownloadDatabase::kStateInterrupted = 4; DownloadDatabase 110 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeInvalid = -1; DownloadDatabase 111 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeNotDangerous = 0; DownloadDatabase 112 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeDangerousFile = 1; DownloadDatabase 113 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeDangerousUrl = 2; DownloadDatabase 114 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeDangerousContent = 3; DownloadDatabase 115 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeMaybeDangerousContent = 4; DownloadDatabase 116 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeUncommonContent = 5; DownloadDatabase 117 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeUserValidated = 6; DownloadDatabase 118 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypeDangerousHost = 7; DownloadDatabase 119 chrome/browser/history/download_database.cc const int DownloadDatabase::kDangerTypePotentiallyUnwanted = 8; DownloadDatabase 121 chrome/browser/history/download_database.cc int DownloadDatabase::StateToInt(DownloadItem::DownloadState state) { DownloadDatabase 123 chrome/browser/history/download_database.cc case DownloadItem::IN_PROGRESS: return DownloadDatabase::kStateInProgress; DownloadDatabase 124 chrome/browser/history/download_database.cc case DownloadItem::COMPLETE: return DownloadDatabase::kStateComplete; DownloadDatabase 125 chrome/browser/history/download_database.cc case DownloadItem::CANCELLED: return DownloadDatabase::kStateCancelled; DownloadDatabase 126 chrome/browser/history/download_database.cc case DownloadItem::INTERRUPTED: return DownloadDatabase::kStateInterrupted; DownloadDatabase 129 chrome/browser/history/download_database.cc return DownloadDatabase::kStateInvalid; DownloadDatabase 132 chrome/browser/history/download_database.cc return DownloadDatabase::kStateInvalid; DownloadDatabase 135 chrome/browser/history/download_database.cc DownloadItem::DownloadState DownloadDatabase::IntToState(int state) { DownloadDatabase 137 chrome/browser/history/download_database.cc case DownloadDatabase::kStateInProgress: return DownloadItem::IN_PROGRESS; DownloadDatabase 138 chrome/browser/history/download_database.cc case DownloadDatabase::kStateComplete: return DownloadItem::COMPLETE; DownloadDatabase 139 chrome/browser/history/download_database.cc case DownloadDatabase::kStateCancelled: return DownloadItem::CANCELLED; DownloadDatabase 142 chrome/browser/history/download_database.cc case DownloadDatabase::kStateInterrupted: return DownloadItem::INTERRUPTED; DownloadDatabase 147 chrome/browser/history/download_database.cc int DownloadDatabase::DangerTypeToInt(content::DownloadDangerType danger_type) { DownloadDatabase 150 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeNotDangerous; DownloadDatabase 152 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeDangerousFile; DownloadDatabase 154 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeDangerousUrl; DownloadDatabase 156 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeDangerousContent; DownloadDatabase 158 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeMaybeDangerousContent; DownloadDatabase 160 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeUncommonContent; DownloadDatabase 162 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeUserValidated; DownloadDatabase 164 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeDangerousHost; DownloadDatabase 166 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypePotentiallyUnwanted; DownloadDatabase 169 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeInvalid; DownloadDatabase 172 chrome/browser/history/download_database.cc return DownloadDatabase::kDangerTypeInvalid; DownloadDatabase 175 chrome/browser/history/download_database.cc content::DownloadDangerType DownloadDatabase::IntToDangerType(int danger_type) { DownloadDatabase 177 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeNotDangerous: DownloadDatabase 179 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeDangerousFile: DownloadDatabase 181 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeDangerousUrl: DownloadDatabase 183 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeDangerousContent: DownloadDatabase 185 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeMaybeDangerousContent: DownloadDatabase 187 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeUncommonContent: DownloadDatabase 189 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeUserValidated: DownloadDatabase 191 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypeDangerousHost: DownloadDatabase 193 chrome/browser/history/download_database.cc case DownloadDatabase::kDangerTypePotentiallyUnwanted: DownloadDatabase 200 chrome/browser/history/download_database.cc DownloadDatabase::DownloadDatabase() DownloadDatabase 206 chrome/browser/history/download_database.cc DownloadDatabase::~DownloadDatabase() { DownloadDatabase 209 chrome/browser/history/download_database.cc bool DownloadDatabase::EnsureColumnExists( DownloadDatabase 216 chrome/browser/history/download_database.cc bool DownloadDatabase::MigrateDownloadsState() { DownloadDatabase 224 chrome/browser/history/download_database.cc bool DownloadDatabase::MigrateDownloadsReasonPathsAndDangerType() { DownloadDatabase 273 chrome/browser/history/download_database.cc bool DownloadDatabase::MigrateReferrer() { DownloadDatabase 277 chrome/browser/history/download_database.cc bool DownloadDatabase::MigrateDownloadedByExtension() { DownloadDatabase 282 chrome/browser/history/download_database.cc bool DownloadDatabase::MigrateDownloadValidators() { DownloadDatabase 287 chrome/browser/history/download_database.cc bool DownloadDatabase::InitDownloadTable() { DownloadDatabase 299 chrome/browser/history/download_database.cc uint32 DownloadDatabase::GetNextDownloadId() { DownloadDatabase 316 chrome/browser/history/download_database.cc bool DownloadDatabase::DropDownloadTable() { DownloadDatabase 320 chrome/browser/history/download_database.cc void DownloadDatabase::QueryDownloads( DownloadDatabase 449 chrome/browser/history/download_database.cc bool DownloadDatabase::UpdateDownload(const DownloadRow& data) { DownloadDatabase 489 chrome/browser/history/download_database.cc void DownloadDatabase::EnsureInProgressEntriesCleanedUp() { DownloadDatabase 503 chrome/browser/history/download_database.cc bool DownloadDatabase::CreateDownload(const DownloadRow& info) { DownloadDatabase 593 chrome/browser/history/download_database.cc void DownloadDatabase::RemoveDownload(uint32 id) { DownloadDatabase 607 chrome/browser/history/download_database.cc void DownloadDatabase::RemoveDownloadURLs(uint32 id) { DownloadDatabase 617 chrome/browser/history/download_database.cc size_t DownloadDatabase::CountDownloads() { DownloadDatabase 25 chrome/browser/history/download_database.h class DownloadDatabase { DownloadDatabase 28 chrome/browser/history/download_database.h DownloadDatabase(); DownloadDatabase 29 chrome/browser/history/download_database.h virtual ~DownloadDatabase(); DownloadDatabase 135 chrome/browser/history/download_database.h DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); DownloadDatabase 41 chrome/browser/history/history_database.h class HistoryDatabase : public DownloadDatabase, DownloadDatabase 746 chrome/browser/history/history_unittest.cc EXPECT_EQ(DownloadDatabase::kStateInProgress, statement1.ColumnInt(0)); DownloadDatabase 776 chrome/browser/history/history_unittest.cc EXPECT_EQ(DownloadDatabase::kStateInterrupted, statement1.ColumnInt(0));