| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 Requirement supported_by_download_ = Requirement::UNSET; | 126 Requirement supported_by_download_ = Requirement::UNSET; |
| 127 Requirement shown_as_recently_visited_site_ = Requirement::UNSET; | 127 Requirement shown_as_recently_visited_site_ = Requirement::UNSET; |
| 128 Requirement restricted_to_original_tab_ = Requirement::UNSET; | 128 Requirement restricted_to_original_tab_ = Requirement::UNSET; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelQueryBuilder); | 130 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelQueryBuilder); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace offline_pages | 133 } // namespace offline_pages |
| 134 | 134 |
| 135 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_QUERY_H_ | 135 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_QUERY_H_ |
| OLD | NEW |