OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_QUERY_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_QUERY_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_QUERY_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_QUERY_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "components/offline_pages/client_policy_controller.h" | 12 #include "components/offline_pages/core/client_policy_controller.h" |
13 #include "components/offline_pages/offline_page_item.h" | 13 #include "components/offline_pages/core/offline_page_item.h" |
14 #include "components/offline_pages/offline_page_types.h" | 14 #include "components/offline_pages/core/offline_page_types.h" |
15 | 15 |
16 namespace offline_pages { | 16 namespace offline_pages { |
17 | 17 |
18 // Can be used by OfflinePageModel instances to direct a query of the model. | 18 // Can be used by OfflinePageModel instances to direct a query of the model. |
19 class OfflinePageModelQuery { | 19 class OfflinePageModelQuery { |
20 public: | 20 public: |
21 // A query can be constrained by several fields. This constraint can be | 21 // A query can be constrained by several fields. This constraint can be |
22 // either a positive or negative one (or no constraint): a page MUST have | 22 // either a positive or negative one (or no constraint): a page MUST have |
23 // something, or a page MUST NOT have something to match a query. | 23 // something, or a page MUST NOT have something to match a query. |
24 enum class Requirement { | 24 enum class Requirement { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 Requirement shown_as_recently_visited_site_ = Requirement::UNSET; | 135 Requirement shown_as_recently_visited_site_ = Requirement::UNSET; |
136 Requirement restricted_to_original_tab_ = Requirement::UNSET; | 136 Requirement restricted_to_original_tab_ = Requirement::UNSET; |
137 | 137 |
138 bool allow_expired_ = false; | 138 bool allow_expired_ = false; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelQueryBuilder); | 140 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelQueryBuilder); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace offline_pages | 143 } // namespace offline_pages |
144 | 144 |
145 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_QUERY_H_ | 145 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_QUERY_H_ |
OLD | NEW |