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

Side by Side Diff: chrome/browser/download/download_query.h

Issue 1706193002: Expose final download URL (actual url after redirects) in the extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_query.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 FILTER_FILENAME_REGEX, // string 62 FILTER_FILENAME_REGEX, // string
63 FILTER_MIME, // string 63 FILTER_MIME, // string
64 FILTER_PAUSED, // bool 64 FILTER_PAUSED, // bool
65 FILTER_QUERY, // vector<base::string16> 65 FILTER_QUERY, // vector<base::string16>
66 FILTER_STARTED_AFTER, // string 66 FILTER_STARTED_AFTER, // string
67 FILTER_STARTED_BEFORE, // string 67 FILTER_STARTED_BEFORE, // string
68 FILTER_START_TIME, // string 68 FILTER_START_TIME, // string
69 FILTER_TOTAL_BYTES, // double 69 FILTER_TOTAL_BYTES, // double
70 FILTER_TOTAL_BYTES_GREATER, // double 70 FILTER_TOTAL_BYTES_GREATER, // double
71 FILTER_TOTAL_BYTES_LESS, // double 71 FILTER_TOTAL_BYTES_LESS, // double
72 FILTER_ORIGINAL_URL, // string
73 FILTER_ORIGINAL_URL_REGEX, // string
72 FILTER_URL, // string 74 FILTER_URL, // string
73 FILTER_URL_REGEX, // string 75 FILTER_URL_REGEX, // string
74 }; 76 };
75 77
76 enum SortType { 78 enum SortType {
77 SORT_BYTES_RECEIVED, 79 SORT_BYTES_RECEIVED,
78 SORT_DANGER, 80 SORT_DANGER,
79 SORT_DANGER_ACCEPTED, 81 SORT_DANGER_ACCEPTED,
80 SORT_END_TIME, 82 SORT_END_TIME,
81 SORT_EXISTS, 83 SORT_EXISTS,
82 SORT_FILENAME, 84 SORT_FILENAME,
83 SORT_MIME, 85 SORT_MIME,
84 SORT_PAUSED, 86 SORT_PAUSED,
85 SORT_START_TIME, 87 SORT_START_TIME,
86 SORT_STATE, 88 SORT_STATE,
87 SORT_TOTAL_BYTES, 89 SORT_TOTAL_BYTES,
90 SORT_ORIGINAL_URL,
88 SORT_URL, 91 SORT_URL,
89 }; 92 };
90 93
91 enum SortDirection { 94 enum SortDirection {
92 ASCENDING, 95 ASCENDING,
93 DESCENDING, 96 DESCENDING,
94 }; 97 };
95 98
96 static bool MatchesQuery(const std::vector<base::string16>& query_terms, 99 static bool MatchesQuery(const std::vector<base::string16>& query_terms,
97 const content::DownloadItem& item); 100 const content::DownloadItem& item);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void FinishSearch(DownloadVector* results) const; 155 void FinishSearch(DownloadVector* results) const;
153 156
154 FilterCallbackVector filters_; 157 FilterCallbackVector filters_;
155 SorterVector sorters_; 158 SorterVector sorters_;
156 size_t limit_; 159 size_t limit_;
157 160
158 DISALLOW_COPY_AND_ASSIGN(DownloadQuery); 161 DISALLOW_COPY_AND_ASSIGN(DownloadQuery);
159 }; 162 };
160 163
161 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ 164 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698