| OLD | NEW |
| 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> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 14 #include "content/public/browser/download_item.h" | 17 #include "content/public/browser/download_item.h" |
| 15 | 18 |
| 16 namespace base { | 19 namespace base { |
| 17 class Value; | 20 class Value; |
| 18 } | 21 } |
| 19 | 22 |
| 20 // Filter and sort a vector of DownloadItem*s. | 23 // Filter and sort a vector of DownloadItem*s. |
| 21 // | 24 // |
| 22 // The following example copies from |all_items| to |results| those | 25 // The following example copies from |all_items| to |results| those |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 159 |
| 157 FilterCallbackVector filters_; | 160 FilterCallbackVector filters_; |
| 158 SorterVector sorters_; | 161 SorterVector sorters_; |
| 159 size_t limit_; | 162 size_t limit_; |
| 160 size_t skip_; | 163 size_t skip_; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(DownloadQuery); | 165 DISALLOW_COPY_AND_ASSIGN(DownloadQuery); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ | 168 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_QUERY_H_ |
| OLD | NEW |