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_NTP_SNIPPETS_CATEGORY_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_CATEGORY_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_CATEGORY_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_CATEGORY_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 namespace ntp_snippets { | 10 namespace ntp_snippets { |
(...skipping 10 matching lines...) Expand all Loading... |
21 enum class KnownCategories { | 21 enum class KnownCategories { |
22 // Pages recently downloaded during normal navigation. | 22 // Pages recently downloaded during normal navigation. |
23 RECENT_TABS, | 23 RECENT_TABS, |
24 | 24 |
25 // Pages downloaded by the user for offline consumption. | 25 // Pages downloaded by the user for offline consumption. |
26 DOWNLOADS, | 26 DOWNLOADS, |
27 | 27 |
28 // Recently used bookmarks. | 28 // Recently used bookmarks. |
29 BOOKMARKS, | 29 BOOKMARKS, |
30 | 30 |
| 31 // Physical Web page available in the vicinity. |
| 32 PHYSICAL_WEB_PAGES, |
| 33 |
31 // Follows the last local category. | 34 // Follows the last local category. |
32 LOCAL_CATEGORIES_COUNT, | 35 LOCAL_CATEGORIES_COUNT, |
33 | 36 |
34 REMOTE_CATEGORIES_OFFSET = 10000, | 37 REMOTE_CATEGORIES_OFFSET = 10000, |
35 | 38 |
36 // Articles for you. | 39 // Articles for you. |
37 ARTICLES, | 40 ARTICLES, |
38 }; | 41 }; |
39 | 42 |
40 // A category groups ContentSuggestions which belong together. Use the | 43 // A category groups ContentSuggestions which belong together. Use the |
(...skipping 29 matching lines...) Expand all Loading... |
70 | 73 |
71 struct Category::CompareByID { | 74 struct Category::CompareByID { |
72 bool operator()(const Category& left, const Category& right) const; | 75 bool operator()(const Category& left, const Category& right) const; |
73 }; | 76 }; |
74 | 77 |
75 std::ostream& operator<<(std::ostream& os, const Category& obj); | 78 std::ostream& operator<<(std::ostream& os, const Category& obj); |
76 | 79 |
77 } // namespace ntp_snippets | 80 } // namespace ntp_snippets |
78 | 81 |
79 #endif // COMPONENTS_NTP_SNIPPETS_CATEGORY_H_ | 82 #endif // COMPONENTS_NTP_SNIPPETS_CATEGORY_H_ |
OLD | NEW |