Home
last modified time | relevance | path

Searched refs:DownloadItem (Results 1 – 25 of 218) sorted by relevance

123456789

/external/chromium/chrome/browser/download/
Ddownload_item.cc61 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 …]
Ddownload_manager_unittest.cc73 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 …]
Ddownload_item_model.cc22 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 …]
Ddownload_manager.h50 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 …]
Ddownload_item_model.h14 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);
/external/chromium_org/content/public/test/
Ddownload_test_observer.h23 class DownloadUpdatedObserver : public DownloadItem::Observer {
25 typedef base::Callback<bool(DownloadItem*)> EventFilter;
29 DownloadUpdatedObserver(DownloadItem* item, EventFilter filter);
40 virtual void OnDownloadUpdated(DownloadItem* item) OVERRIDE;
41 virtual void OnDownloadDestroyed(DownloadItem* item) OVERRIDE;
43 DownloadItem* item_;
60 public DownloadItem::Observer {
86 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE;
87 virtual void OnDownloadDestroyed(DownloadItem* download) OVERRIDE;
91 DownloadManager* manager, DownloadItem* item) OVERRIDE;
[all …]
Ddownload_test_observer.cc22 DownloadItem* item, DownloadUpdatedObserver::EventFilter filter) in DownloadUpdatedObserver()
47 void DownloadUpdatedObserver::OnDownloadUpdated(DownloadItem* item) { in OnDownloadUpdated()
55 void DownloadUpdatedObserver::OnDownloadDestroyed(DownloadItem* item) { in OnDownloadDestroyed()
86 std::vector<DownloadItem*> downloads; in Init()
88 for (std::vector<DownloadItem*>::iterator it = downloads.begin(); in Init()
117 DownloadItem* item) { in OnDownloadCreated()
130 void DownloadTestObserver::OnDownloadDestroyed(DownloadItem* download) { in OnDownloadDestroyed()
138 void DownloadTestObserver::OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated()
193 DownloadItem::DownloadState state) const { in NumDownloadsSeenInState()
202 void DownloadTestObserver::DownloadInFinalState(DownloadItem* download) { in DownloadInFinalState()
[all …]
/external/chromium_org/chrome/browser/download/
Ddownload_query.cc35 using content::DownloadItem;
74 const DownloadItem& item) { in MatchesQuery()
101 static int64 GetStartTimeMsEpoch(const DownloadItem& item) { in GetStartTimeMsEpoch()
105 static int64 GetEndTimeMsEpoch(const DownloadItem& item) { in GetEndTimeMsEpoch()
118 static std::string GetStartTime(const DownloadItem& item) { in GetStartTime()
122 static std::string GetEndTime(const DownloadItem& item) { in GetEndTime()
126 static bool GetDangerAccepted(const DownloadItem& item) { in GetDangerAccepted()
131 static bool GetExists(const DownloadItem& item) { in GetExists()
135 static base::string16 GetFilename(const DownloadItem& item) { in GetFilename()
141 static std::string GetFilenameUTF8(const DownloadItem& item) { in GetFilenameUTF8()
[all …]
Dall_download_item_notifier.h36 public content::DownloadItem::Observer {
47 content::DownloadManager* manager, content::DownloadItem* item) {} in OnDownloadCreated()
49 content::DownloadManager* manager, content::DownloadItem* item) {} in OnDownloadUpdated()
51 content::DownloadManager* manager, content::DownloadItem* item) {} in OnDownloadOpened()
53 content::DownloadManager* manager, content::DownloadItem* item) {} in OnDownloadRemoved()
71 content::DownloadItem* item) OVERRIDE;
74 virtual void OnDownloadUpdated(content::DownloadItem* item) OVERRIDE;
75 virtual void OnDownloadOpened(content::DownloadItem* item) OVERRIDE;
76 virtual void OnDownloadRemoved(content::DownloadItem* item) OVERRIDE;
77 virtual void OnDownloadDestroyed(content::DownloadItem* item) OVERRIDE;
[all …]
Ddownload_ui_controller_unittest.cc30 explicit TestDelegate(base::WeakPtr<content::DownloadItem*> receiver);
34 virtual void NotifyDownloadStarting(content::DownloadItem* item) OVERRIDE;
36 base::WeakPtr<content::DownloadItem*> receiver_;
39 TestDelegate::TestDelegate(base::WeakPtr<content::DownloadItem*> receiver) in TestDelegate()
43 void TestDelegate::NotifyDownloadStarting(content::DownloadItem* item) { in NotifyDownloadStarting()
68 content::DownloadItem::Observer* item_observer() { return item_observer_; } in item_observer()
69 content::DownloadItem* received_item() { return received_item_; } in received_item()
74 content::DownloadItem::Observer* item_observer_;
75 content::DownloadItem* received_item_;
77 base::WeakPtrFactory<content::DownloadItem*> receiver_factory_;
[all …]
Ddownload_item_model_unittest.cc26 using content::DownloadItem;
78 .WillByDefault(Return(DownloadItem::IN_PROGRESS)); in SetupDownloadItemDefaults()
87 Return(DownloadItem::TARGET_DISPOSITION_OVERWRITE)); in SetupDownloadItemDefaults()
96 DownloadItem::IN_PROGRESS : in SetupInterruptedDownloadItem()
97 DownloadItem::INTERRUPTED)); in SetupInterruptedDownloadItem()
366 DownloadItem::DownloadState state; in TEST_F()
380 { DownloadItem::IN_PROGRESS, false, false, false, false}, in TEST_F()
381 { DownloadItem::IN_PROGRESS, false, true , false, true }, in TEST_F()
382 { DownloadItem::IN_PROGRESS, true , false, false, false}, in TEST_F()
383 { DownloadItem::IN_PROGRESS, true , true , false, false}, in TEST_F()
[all …]
Ddownload_target_determiner_unittest.cc55 using content::DownloadItem;
131 DownloadItem::TargetDisposition expected_disposition;
141 void(content::DownloadItem*, const base::FilePath&,
144 void(content::DownloadItem*, const base::FilePath&,
147 void(content::DownloadItem*, const base::FilePath&,
150 void(DownloadItem*, const base::FilePath&,
153 void(DownloadItem*, const base::FilePath&, bool,
183 DownloadItem* download,
189 DownloadItem* download, const base::FilePath& suggested_path,
192 DownloadItem* download, const base::FilePath& virtual_path,
[all …]
Dchrome_download_manager_delegate.h59 static void DisableSafeBrowsing(content::DownloadItem* item);
71 content::DownloadItem* item,
76 content::DownloadItem* item,
79 content::DownloadItem* item,
92 virtual void OpenDownload(content::DownloadItem* download) OVERRIDE;
93 virtual void ShowDownloadInShell(content::DownloadItem* download) OVERRIDE;
95 content::DownloadItem* download,
102 void OpenDownloadUsingPlatformHandler(content::DownloadItem* download);
116 content::DownloadItem* download,
120 content::DownloadItem* download,
[all …]
Ddownload_path_reservation_tracker.cc23 using content::DownloadItem;
27 typedef DownloadItem* ReservationKey;
52 class DownloadItemObserver : public DownloadItem::Observer {
54 explicit DownloadItemObserver(DownloadItem* download_item);
60 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE;
61 virtual void OnDownloadDestroyed(DownloadItem* download) OVERRIDE;
63 DownloadItem* download_item_;
280 DownloadItemObserver::DownloadItemObserver(DownloadItem* download_item) in DownloadItemObserver()
291 void DownloadItemObserver::OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated()
293 case DownloadItem::IN_PROGRESS: { in OnDownloadUpdated()
[all …]
Ddownload_ui_controller.cc35 virtual void NotifyDownloadStarting(content::DownloadItem* item) OVERRIDE;
39 content::DownloadItem* item) { in NotifyDownloadStarting()
57 virtual void NotifyDownloadStarting(content::DownloadItem* item) OVERRIDE;
63 content::DownloadItem* item) {
107 content::DownloadItem* item) { in OnDownloadCreated()
109 if (item->GetState() != content::DownloadItem::IN_PROGRESS) in OnDownloadCreated()
119 content::DownloadItem* item) { in OnDownloadUpdated()
131 DCHECK_NE(content::DownloadItem::COMPLETE, item->GetState()); in OnDownloadUpdated()
Ddownload_status_updater.cc29 static bool Get(content::DownloadItem* item) { in Get()
33 static void Clear(content::DownloadItem* item) { in Clear()
37 explicit WasInProgressData(content::DownloadItem* item) { in WasInProgressData()
73 if ((*it)->GetState() == content::DownloadItem::IN_PROGRESS) { in GetProgress()
103 content::DownloadManager* manager, content::DownloadItem* item) { in OnDownloadCreated()
107 if (item->GetState() == content::DownloadItem::IN_PROGRESS) { in OnDownloadCreated()
116 content::DownloadManager* manager, content::DownloadItem* item) { in OnDownloadUpdated()
117 if (item->GetState() == content::DownloadItem::IN_PROGRESS) { in OnDownloadUpdated()
138 content::DownloadItem* download) { in UpdateAppIconDownloadProgress()
Ddownload_history.h59 virtual void OnDownloadStored(content::DownloadItem* item, in OnDownloadStored()
71 static bool IsPersisted(content::DownloadItem* item);
86 typedef std::set<content::DownloadItem*> ItemSet;
94 void MaybeAddToHistory(content::DownloadItem* item);
102 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
104 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
106 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
108 content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
/external/chromium_org/content/browser/download/
Ddownload_browsertest.cc54 class MockDownloadItemObserver : public DownloadItem::Observer {
59 MOCK_METHOD1(OnDownloadUpdated, void(DownloadItem*));
60 MOCK_METHOD1(OnDownloadOpened, void(DownloadItem*));
61 MOCK_METHOD1(OnDownloadRemoved, void(DownloadItem*));
62 MOCK_METHOD1(OnDownloadDestroyed, void(DownloadItem*));
76 MOCK_METHOD2(OnDownloadCreated, void(DownloadManager*, DownloadItem*));
355 DownloadItem* item, in ShouldOpenDownload()
380 class RecordingDownloadObserver : DownloadItem::Observer {
383 DownloadItem::DownloadState state;
389 RecordingDownloadObserver(DownloadItem* download) in RecordingDownloadObserver()
[all …]
Ddownload_item_impl_unittest.cc111 class MockObserver : public DownloadItem::Observer {
113 explicit MockObserver(DownloadItem* item) in MockObserver()
128 virtual void OnDownloadRemoved(DownloadItem* download) OVERRIDE { in OnDownloadRemoved()
134 virtual void OnDownloadUpdated(DownloadItem* download) OVERRIDE { in OnDownloadUpdated()
138 DownloadItem::DownloadState new_state = download->GetState(); in OnDownloadUpdated()
139 if (last_state_ == DownloadItem::IN_PROGRESS && in OnDownloadUpdated()
140 new_state == DownloadItem::INTERRUPTED) { in OnDownloadUpdated()
143 if (last_state_ == DownloadItem::INTERRUPTED && in OnDownloadUpdated()
144 new_state == DownloadItem::IN_PROGRESS) { in OnDownloadUpdated()
150 virtual void OnDownloadOpened(DownloadItem* download) OVERRIDE { in OnDownloadOpened()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/
Ddownload_handler.cc20 using content::DownloadItem;
50 const DriveUserData* GetDriveUserData(const DownloadItem* download) { in GetDriveUserData()
55 DriveUserData* GetDriveUserData(DownloadItem* download) { in GetDriveUserData()
96 DownloadItem* download) { in IsPersistedDriveDownload()
100 download->GetState() != DownloadItem::IN_PROGRESS; in IsPersistedDriveDownload()
143 content::DownloadItem* download, in SubstituteDriveDownloadPath()
164 DownloadItem* download) { in SetDownloadParams()
165 if (!download || (download->GetState() != DownloadItem::IN_PROGRESS)) in SetDownloadParams()
181 const DownloadItem* download) { in GetTargetPath()
189 base::FilePath DownloadHandler::GetCacheFilePath(const DownloadItem* download) { in GetCacheFilePath()
[all …]
Ddownload_handler.h17 class DownloadItem; variable
47 content::DownloadItem* download,
54 content::DownloadItem* download);
57 base::FilePath GetTargetPath(const content::DownloadItem* download);
60 base::FilePath GetCacheFilePath(const content::DownloadItem* download);
63 bool IsDriveDownload(const content::DownloadItem* download);
67 const content::DownloadItem* download,
73 content::DownloadItem* download) OVERRIDE;
75 content::DownloadItem* download) OVERRIDE;
86 void UploadDownloadItem(content::DownloadItem* download);
/external/chromium/chrome/browser/ui/webui/
Ddownloads_dom_handler.cc39 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 …]
/external/chromium_org/chrome/browser/plugins/
Dplugin_installer.cc33 using content::DownloadItem;
59 content::DownloadItem::kInvalidId, in BeginDownload()
65 base::Bind(callback, static_cast<DownloadItem*>(NULL), error)); in BeginDownload()
79 void PluginInstaller::OnDownloadUpdated(DownloadItem* download) { in OnDownloadUpdated()
80 DownloadItem::DownloadState state = download->GetState(); in OnDownloadUpdated()
82 case DownloadItem::IN_PROGRESS: in OnDownloadUpdated()
84 case DownloadItem::COMPLETE: { in OnDownloadUpdated()
91 case DownloadItem::CANCELLED: { in OnDownloadUpdated()
95 case DownloadItem::INTERRUPTED: { in OnDownloadUpdated()
100 case DownloadItem::MAX_DOWNLOAD_STATE: { in OnDownloadUpdated()
[all …]
/external/chromium_org/content/public/browser/
Ddownload_manager_delegate.h24 typedef base::Callback<void(DownloadItem*)>
44 DownloadItem::TargetDisposition disposition,
79 virtual bool DetermineDownloadTarget(DownloadItem* item,
92 DownloadItem* item,
99 virtual bool ShouldOpenDownload(DownloadItem* item,
122 virtual void OpenDownload(DownloadItem* download) {} in OpenDownload()
125 virtual void ShowDownloadInShell(DownloadItem* download) {} in ShowDownloadInShell()
129 DownloadItem* download, in CheckForFileExistence()
/external/chromium_org/chrome/browser/ui/webui/
Ddownloads_dom_handler.cc116 content::DownloadItem* download_item, in CreateDownloadItemValue()
168 case content::DownloadItem::IN_PROGRESS: in CreateDownloadItemValue()
201 case content::DownloadItem::INTERRUPTED: in CreateDownloadItemValue()
218 case content::DownloadItem::CANCELLED: in CreateDownloadItemValue()
223 case content::DownloadItem::COMPLETE: in CreateDownloadItemValue()
228 case content::DownloadItem::MAX_DOWNLOAD_STATE: in CreateDownloadItemValue()
236 bool IsDownloadDisplayable(const content::DownloadItem& item) { in IsDownloadDisplayable()
312 content::DownloadManager* manager, content::DownloadItem* download_item) { in OnDownloadCreated()
319 content::DownloadItem* download_item) { in OnDownloadUpdated()
344 content::DownloadItem* download_item) { in OnDownloadRemoved()
[all …]

123456789