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

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: comments 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..e1ad205e4cd5802d07574f734f48d808567bef28 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"
#include "content/browser/download/download_manager.h"
namespace base {
@@ -140,6 +141,13 @@ class DownloadsSearchFunction : public SyncDownloadsFunction {
virtual void RunInternal() OVERRIDE;
private:
+ template <typename ValueType>
+ bool Parse(base::DictionaryValue* json, const char* name);
+
+ download_util::DownloadQuery query_;
+ int get_id_;
+ bool has_get_id_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadsSearchFunction);
};

Powered by Google App Engine
This is Rietveld 408576698