/external/chromium/chrome/browser/download/ |
D | download_item.cc | 61 const char* DebugSafetyStateString(DownloadItem::SafetyState state) { in DebugSafetyStateString() 63 case DownloadItem::SAFE: in DebugSafetyStateString() 65 case DownloadItem::DANGEROUS: in DebugSafetyStateString() 67 case DownloadItem::DANGEROUS_BUT_VALIDATED: in DebugSafetyStateString() 75 const char* DebugDownloadStateString(DownloadItem::DownloadState state) { in DebugDownloadStateString() 77 case DownloadItem::IN_PROGRESS: in DebugDownloadStateString() 79 case DownloadItem::COMPLETE: in DebugDownloadStateString() 81 case DownloadItem::CANCELLED: in DebugDownloadStateString() 83 case DownloadItem::REMOVING: in DebugDownloadStateString() 85 case DownloadItem::INTERRUPTED: in DebugDownloadStateString() [all …]
|
D | download_manager_unittest.cc | 73 DownloadItem* GetActiveDownloadItem(int32 id) { in GetActiveDownloadItem() 101 DownloadItem::SafetyState safety_state = in VerifySafetyState() 104 safety_state != DownloadItem::SAFE : safety_state == DownloadItem::SAFE; in VerifySafetyState() 252 class ItemObserver : public DownloadItem::Observer { 254 explicit ItemObserver(DownloadItem* tracked) in ItemObserver() 274 virtual void OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated() 279 virtual void OnDownloadOpened(DownloadItem* download) { in OnDownloadOpened() 285 DownloadItem* tracked_; 424 DownloadItem* download = GetActiveDownloadItem(0); in TEST_F() 427 EXPECT_EQ(DownloadItem::IN_PROGRESS, download->state()); in TEST_F() [all …]
|
D | download_item_model.cc | 22 DownloadItemModel::DownloadItemModel(DownloadItem* download) in DownloadItemModel() 57 case DownloadItem::IN_PROGRESS: in GetStatusText() 79 case DownloadItem::COMPLETE: in GetStatusText() 82 case DownloadItem::CANCELLED: in GetStatusText() 85 case DownloadItem::REMOVING: in GetStatusText() 87 case DownloadItem::INTERRUPTED: in GetStatusText() 102 SavePageModel::SavePageModel(SavePackage* save, DownloadItem* download) in SavePageModel() 117 case DownloadItem::IN_PROGRESS: in GetStatusText() 123 case DownloadItem::COMPLETE: in GetStatusText() 126 case DownloadItem::CANCELLED: in GetStatusText() [all …]
|
D | download_manager.h | 50 class DownloadItem; variable 99 std::vector<DownloadItem*>* result); 104 std::vector<DownloadItem*>* result); 109 std::vector<DownloadItem*>* result); 114 std::vector<DownloadItem*>* result); 135 bool IsDownloadReadyForCompletion(DownloadItem* download); 141 void MaybeCompleteDownload(DownloadItem* download); 171 void SavePageAsDownloadStarted(DownloadItem* download_item); 202 DownloadItem* download); 235 void DangerousDownloadValidated(DownloadItem* download); [all …]
|
D | download_item_model.h | 14 class DownloadItem; variable 21 explicit BaseDownloadItemModel(DownloadItem* download) in BaseDownloadItemModel() 31 DownloadItem* download() { return download_; } in download() 34 DownloadItem* download_; 42 explicit DownloadItemModel(DownloadItem* download); 60 SavePageModel(SavePackage* save, DownloadItem* download);
|
D | download_manager.cc | 86 DownloadItem* download = *it; in Shutdown() 93 if (download->safety_state() == DownloadItem::DANGEROUS && in Shutdown() 103 download->Delete(DownloadItem::DELETE_DUE_TO_BROWSER_SHUTDOWN); in Shutdown() 138 const FilePath& dir_path, std::vector<DownloadItem*>* result) { in GetTemporaryDownloads() 150 const FilePath& dir_path, std::vector<DownloadItem*>* result) { in GetAllDownloads() 162 const FilePath& dir_path, std::vector<DownloadItem*>* result) { in GetCurrentDownloads() 167 DownloadItem* item =it->second; in GetCurrentDownloads() 173 (item->safety_state() != DownloadItem::DANGEROUS)) in GetCurrentDownloads() 191 std::vector<DownloadItem*>* result) { in SearchDownloads() 198 DownloadItem* download_item = it->second; in SearchDownloads() [all …]
|
D | download_history.h | 13 class DownloadItem; variable 35 DownloadItem* download_item, 39 void UpdateEntry(DownloadItem* download_item); 42 void UpdateDownloadPath(DownloadItem* download_item, 46 void RemoveEntry(DownloadItem* download_item);
|
D | download_item.h | 39 class DownloadItem { 92 virtual void OnDownloadUpdated(DownloadItem* download) = 0; 95 virtual void OnDownloadOpened(DownloadItem* download) = 0; 102 DownloadItem(DownloadManager* download_manager, 106 DownloadItem(DownloadManager* download_manager, 111 DownloadItem(DownloadManager* download_manager, 116 ~DownloadItem(); 361 base::RepeatingTimer<DownloadItem> update_timer_; 417 DISALLOW_COPY_AND_ASSIGN(DownloadItem);
|
D | download_browsertest.cc | 55 public DownloadItem::Observer { 70 DownloadItem::DownloadState download_finished_state, in DownloadsObserver() 84 std::set<DownloadItem*>::iterator it = downloads_observed_.begin(); in ~DownloadsObserver() 112 virtual void OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated() 117 virtual void OnDownloadOpened(DownloadItem* download) {} in OnDownloadOpened() 124 std::vector<DownloadItem*> downloads; in ModelChanged() 127 std::vector<DownloadItem*>::iterator it = downloads.begin(); in ModelChanged() 131 std::set<DownloadItem*>::const_iterator in ModelChanged() 133 std::set<DownloadItem*>::iterator in ModelChanged() 164 void DownloadInFinalState(DownloadItem* download) { in DownloadInFinalState() [all …]
|
D | download_util.h | 29 class DownloadItem; variable 81 const DownloadItem& download_item); 202 void DragDownload(const DownloadItem* download, 210 DictionaryValue* CreateDownloadItemValue(DownloadItem* download, int id); 213 string16 GetProgressStatusText(DownloadItem* download);
|
D | download_history.cc | 44 DownloadItem* download_item, in AddEntry() 68 void DownloadHistory::UpdateEntry(DownloadItem* download_item) { in UpdateEntry() 84 void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item, in UpdateDownloadPath() 96 void DownloadHistory::RemoveEntry(DownloadItem* download_item) { in RemoveEntry()
|
D | download_shelf.h | 16 class DownloadItem; variable 51 virtual DownloadItem* download() const; 68 DownloadItem* download_;
|
D | drag_download_file.h | 25 public DownloadItem::Observer { 58 virtual void OnDownloadUpdated(DownloadItem* download); 59 virtual void OnDownloadOpened(DownloadItem* download) { } in OnDownloadOpened()
|
/external/chromium/chrome/browser/ui/webui/ |
D | downloads_dom_handler.cc | 39 class DownloadItemSorter : public std::binary_function<DownloadItem*, 40 DownloadItem*, 43 bool operator()(const DownloadItem* lhs, const DownloadItem* rhs) { in operator ()() 97 void DownloadsDOMHandler::OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated() 128 DownloadItem* download = *it; in ModelChanged() 132 } else if (download->safety_state() == DownloadItem::DANGEROUS) { in ModelChanged() 152 DownloadItem* file = GetDownloadByValue(args); in HandleOpenFile() 158 DownloadItem* file = GetDownloadByValue(args); in HandleDrag() 169 DownloadItem* file = GetDownloadByValue(args); in HandleSaveDangerous() 175 DownloadItem* file = GetDownloadByValue(args); in HandleDiscardDangerous() [all …]
|
D | downloads_dom_handler.h | 22 public DownloadItem::Observer { 33 virtual void OnDownloadUpdated(DownloadItem* download); 34 virtual void OnDownloadOpened(DownloadItem* download) { } in OnDownloadOpened() 80 DownloadItem* GetDownloadById(int id); 83 DownloadItem* GetDownloadByValue(const ListValue* args); 94 typedef std::vector<DownloadItem*> OrderedDownloads;
|
D | active_downloads_ui.cc | 88 public DownloadItem::Observer { 101 virtual void OnDownloadUpdated(DownloadItem* item); 102 virtual void OnDownloadOpened(DownloadItem* item) { } in OnDownloadOpened() 118 DownloadItem* GetDownloadById(const ListValue* args); 121 void AddDownload(DownloadItem* item); 129 typedef std::vector<DownloadItem*> DownloadList; 249 DownloadItem* ActiveDownloadsHandler::GetDownloadById( in GetDownloadById() 259 DownloadItem* item = GetDownloadById(args); in HandlePauseToggleDownload() 265 DownloadItem* item = GetDownloadById(args); in HandleAllowDownload() 271 DownloadItem* item = GetDownloadById(args); in HandleCancelDownload() [all …]
|
/external/chromium/chrome/browser/ui/cocoa/download/ |
D | download_item_mac.mm | 28 void DownloadItemMac::OnDownloadUpdated(DownloadItem* download) { 32 download->safety_state() == DownloadItem::DANGEROUS_BUT_VALIDATED) { 48 case DownloadItem::REMOVING: 51 case DownloadItem::COMPLETE: 58 case DownloadItem::IN_PROGRESS: 59 case DownloadItem::INTERRUPTED: 60 case DownloadItem::CANCELLED: 68 void DownloadItemMac::OnDownloadOpened(DownloadItem* download) {
|
D | download_item_mac.h | 29 class DownloadItemMac : DownloadItem::Observer { 39 virtual void OnDownloadUpdated(DownloadItem* download); 40 virtual void OnDownloadOpened(DownloadItem* download);
|
/external/chromium/chrome/browser/ui/webui/chromeos/ |
D | imageburner_ui.h | 87 public DownloadItem::Observer, 101 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; 102 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE {} 154 DownloadItem* active_download_item_; 169 public DownloadItem::Observer, 193 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; 194 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE; 249 DownloadItem* active_download_item_;
|
/external/chromium/chrome/browser/ui/gtk/ |
D | custom_drag.h | 16 class DownloadItem; variable 64 DownloadItem* item, 69 static void BeginDrag(const DownloadItem* item, gfx::Image* icon); 72 DownloadItemDrag(const DownloadItem* item, gfx::Image* icon); 79 const DownloadItem* download_item_;
|
D | custom_drag.cc | 26 const DownloadItem* download_item) { in OnDragDataGetForDownloadItem() 36 const DownloadItem* item) { in OnDragDataGetStandalone() 77 DownloadItemDrag::DownloadItemDrag(const DownloadItem* item, in DownloadItemDrag() 95 DownloadItem* item, in SetSource() 115 void DownloadItemDrag::BeginDrag(const DownloadItem* item, gfx::Image* icon) { in BeginDrag()
|
/external/chromium/chrome/browser/ui/views/download/ |
D | download_item_view.h | 56 public DownloadItem::Observer, 59 DownloadItemView(DownloadItem* download, 73 DownloadItem* download() const { return download_; } in download() 76 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE; 77 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE; 193 DownloadItem* download_;
|
/external/chromium/chrome/browser/history/ |
D | download_database.cc | 143 statement.BindInt(0, DownloadItem::CANCELLED); in CleanUpInProgressEntries() 144 statement.BindInt(1, DownloadItem::IN_PROGRESS); in CleanUpInProgressEntries() 194 statement.BindInt(2, DownloadItem::COMPLETE); in RemoveDownloadsBetween() 195 statement.BindInt(3, DownloadItem::CANCELLED); in RemoveDownloadsBetween() 196 statement.BindInt(4, DownloadItem::INTERRUPTED); in RemoveDownloadsBetween()
|
D | history_unittest.cc | 315 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, Time())); in TEST_F() 317 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now - one_day)); in TEST_F() 318 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now)); in TEST_F() 319 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now + one_day)); in TEST_F() 321 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, month_ago)); in TEST_F() 322 EXPECT_NE(0, in_progress = AddDownload(DownloadItem::IN_PROGRESS, month_ago)); in TEST_F() 323 EXPECT_NE(0, AddDownload(DownloadItem::CANCELLED, month_ago)); in TEST_F() 324 EXPECT_NE(0, AddDownload(DownloadItem::INTERRUPTED, month_ago)); in TEST_F() 325 EXPECT_NE(0, removing = AddDownload(DownloadItem::REMOVING, month_ago)); in TEST_F() 348 EXPECT_EQ(DownloadItem::COMPLETE, downloads[0].state); in TEST_F() [all …]
|
/external/chromium/chrome/browser/ui/gtk/download/ |
D | download_item_gtk.h | 39 class DownloadItemGtk : public DownloadItem::Observer, 51 virtual void OnDownloadUpdated(DownloadItem* download); 52 virtual void OnDownloadOpened(DownloadItem* download) { } in OnDownloadOpened() 70 DownloadItem* get_download();
|