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

Unified Diff: chrome/browser/extensions/extension_downloads_api.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: chrome/browser/extensions/extension_downloads_api.h
diff --git a/chrome/browser/extensions/extension_downloads_api.h b/chrome/browser/extensions/extension_downloads_api.h
index b0cf0e90cc3db310d6ae215aa9250fcfbb2156c4..f63f9bc79eaf3645f91e88826cb89335cf89f18e 100644
--- a/chrome/browser/extensions/extension_downloads_api.h
+++ b/chrome/browser/extensions/extension_downloads_api.h
@@ -15,6 +15,7 @@
#include "base/string16.h"
#include "chrome/browser/extensions/extension_function.h"
#include "content/browser/download/download_item.h"
+#include "content/browser/download/download_query.h"
asanka 2011/10/20 19:29:16 Nit: ordering.
#include "content/browser/download/download_manager.h"
namespace base {
@@ -140,6 +141,14 @@ class DownloadsSearchFunction : public SyncDownloadsFunction {
virtual void RunInternal() OVERRIDE;
private:
+ template <typename ValueType>
+ bool Parse(base::DictionaryValue* json, const char* json_name,
+ download_util::DownloadQuery::FilterFieldName filter_name);
+
+ download_util::DownloadQuery query_;
cbentzel 2011/10/20 18:18:53 Could you make this a scoped_ptr so you can just f
+ int get_id_;
+ bool has_get_id_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadsSearchFunction);
};

Powered by Google App Engine
This is Rietveld 408576698