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

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

Issue 7825035: Implement chrome.experimental.downloads.search() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: " 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_query_fields.h
diff --git a/content/browser/download/download_query_fields.h b/content/browser/download/download_query_fields.h
new file mode 100644
index 0000000000000000000000000000000000000000..26e9dfc59298eccf7215e1f1507af0a010ceb2cb
--- /dev/null
+++ b/content/browser/download/download_query_fields.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards, it's included
+// inside macros to translate between Values and C++ types.
+
+// This file lists the fields of chrome.experimental.downloads.DownloadQuery.
+// See chrome/common/extensions/api/extension_api.json for their descriptions.
+
+// DownloadQuery is a superset of DownloadItem.
+#include "content/browser/download/simple_download_item_fields.h"
+
+FIELD(query, String)
+FIELD(startedBefore, Integer)
+FIELD(startedAfter, Integer)
+FIELD(endedBefore, Integer)
+FIELD(endedAfter, Integer)
+FIELD(totalBytesGreater, Integer)
+FIELD(totalBytesLess, Integer)
+FIELD(fileSizeGreater, Integer)
+FIELD(fileSizeLess, Integer)
+FIELD(filenameRegex, String)
+FIELD(urlRegex, String)
+FIELD(limit, Integer)
+FIELD(orderBy, String)

Powered by Google App Engine
This is Rietveld 408576698