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_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ |
7 | 7 |
8 namespace ntp_snippets { | 8 namespace ntp_snippets { |
9 | 9 |
10 // Represents the status of a category of content suggestions. | 10 // Represents the status of a category of content suggestions. |
(...skipping 23 matching lines...) Expand all Loading... | |
34 // Content suggestions are not available because the user is not signed in. | 34 // Content suggestions are not available because the user is not signed in. |
35 SIGNED_OUT, | 35 SIGNED_OUT, |
36 // Content suggestions are not available because sync is disabled. | 36 // Content suggestions are not available because sync is disabled. |
37 SYNC_DISABLED, | 37 SYNC_DISABLED, |
38 // Content suggestions are not available because passphrase encryption is | 38 // Content suggestions are not available because passphrase encryption is |
39 // enabled (and it should be disabled). | 39 // enabled (and it should be disabled). |
40 PASSPHRASE_ENCRYPTION_ENABLED, | 40 PASSPHRASE_ENCRYPTION_ENABLED, |
41 // Content suggestions are not available because history sync is disabled. | 41 // Content suggestions are not available because history sync is disabled. |
42 HISTORY_SYNC_DISABLED, | 42 HISTORY_SYNC_DISABLED, |
43 | 43 |
44 // Content suggestions are not available because an error occured when loading | 44 // Content suggestions are not available because an error occurred when |
45 // loading | |
45 // or updating them. | 46 // or updating them. |
Marc Treib
2016/07/28 11:41:46
nit: fits on the previous line
Philipp Keck
2016/07/28 13:50:54
Done.
| |
46 LOADING_ERROR | 47 LOADING_ERROR |
47 }; | 48 }; |
48 | 49 |
49 // Determines whether the given status is one of the AVAILABLE statuses. | 50 // Determines whether the given status is one of the AVAILABLE statuses. |
50 bool IsContentSuggestionsCategoryStatusAvailable( | 51 bool IsContentSuggestionsCategoryStatusAvailable( |
51 ContentSuggestionsCategoryStatus status); | 52 ContentSuggestionsCategoryStatus status); |
52 | 53 |
53 // Determines whether the given status is INITIALIZING or one of the AVAILABLE | 54 // Determines whether the given status is INITIALIZING or one of the AVAILABLE |
54 // statuses. All of these statuses have in common that there is or will soon be | 55 // statuses. All of these statuses have in common that there is or will soon be |
55 // content. | 56 // content. |
56 bool IsContentSuggestionsCategoryStatusInitOrAvailable( | 57 bool IsContentSuggestionsCategoryStatusInitOrAvailable( |
57 ContentSuggestionsCategoryStatus status); | 58 ContentSuggestionsCategoryStatus status); |
58 | 59 |
59 } // namespace ntp_snippets | 60 } // namespace ntp_snippets |
60 | 61 |
61 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ | 62 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ |
OLD | NEW |