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

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: merge Created 9 years, 2 months 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
Index: content/browser/download/download_manager.h
diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h
index 8d1a1617e9446d6c1f2e2257310f0c9984818069..728622aaf3569ee9443d1c6ef60cd09b07591f72 100644
--- a/content/browser/download/download_manager.h
+++ b/content/browser/download/download_manager.h
@@ -63,7 +63,11 @@ struct DownloadSaveInfo;
namespace content {
class BrowserContext;
-}
+} // namespace content
cbentzel 2011/10/20 18:18:53 Nit: end namespaces not needed for forward declara
+
+namespace download_util {
+class DownloadQuery;
+} // namespace download_util
// Browser's download manager: manages all downloads and destination view.
class CONTENT_EXPORT DownloadManager
@@ -107,6 +111,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);

Powered by Google App Engine
This is Rietveld 408576698