Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: content/browser/download/download_manager.h

Issue 7825035: Implement chrome.experimental.downloads.search() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rewrite Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_item_interface.h ('k') | content/browser/download/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager.h
diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h
index cf8d2db4a181143d753237d84207361f1c49f600..9ee1579a9e8ff92b6247b6ef04c636e846877c8b 100644
--- a/content/browser/download/download_manager.h
+++ b/content/browser/download/download_manager.h
@@ -65,7 +65,11 @@ struct DownloadSaveInfo;
namespace content {
class BrowserContext;
class DownloadManagerDelegate;
-}
+} // namespace content
+
+namespace download_util {
+class DownloadQuery;
+} // namespace download_util
// Browser's download manager: manages all downloads and destination view.
class CONTENT_EXPORT DownloadManager
@@ -110,6 +114,10 @@ class CONTENT_EXPORT DownloadManager
// are in progress or have completed.
void GetAllDownloads(const FilePath& dir_path, DownloadVector* result);
+ // Fill |results| with the items that match |query|.
+ void Search(const download_util::DownloadQuery& query,
+ DownloadVector* results) const;
+
// Returns all non-temporary downloads matching |query|. Empty query matches
// everything.
void SearchDownloads(const string16& query, DownloadVector* result);
« no previous file with comments | « content/browser/download/download_item_interface.h ('k') | content/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698