Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: components/ntp_snippets/content_suggestions_state.h

Issue 2102023002: Add ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marks comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_STATE_H_
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_STATE_H_
7
8 namespace ntp_snippets {
9
10 // Represents the state of a category of content suggestions.
11 // On Android builds, a Java counterpart will be generated for this enum.
12 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets
13 enum class ContentSuggestionsState : int {
14 // Content suggestions are provided but not yet loaded.
15 AVAILABLE_LOADING,
16
17 // Content suggestions are available (though the list of available suggestions
18 // may be empty simply because there are no reasonable suggestions to be made
19 // at the moment).
20 AVAILABLE,
21
22 // --------------- All AVAILABLE_* states must be before the remaining states.
23 // --------------- and AVAILABLE must be the last.
24
25 // There is no provider that provides suggestions for this category.
26 NOT_PROVIDED,
27 // The entire content suggestions feature has explicitly been disabled as part
28 // of the service configuration.
29 ALL_SUGGESTIONS_EXPLICITLY_DISABLED,
30 // Content suggestions from a specific category have been disabled as part of
31 // the service configuration.
32 CATEGORY_EXPLICITLY_DISABLED,
33 // Content suggestions are not available because the user is not signed in.
34 SIGNED_OUT,
35 // Content suggestions are not available because sync is disabled.
36 SYNC_DISABLED,
37 // Content suggestions are not available because passphrase encryption is
38 // enabled (and it should be disabled).
39 PASSPHRASE_ENCRYPTION_ENABLED,
40 // Content suggestions are not available because history sync is disabled.
41 HISTORY_SYNC_DISABLED,
42 // Content suggestions are not available because the history sync service is
43 // not yet completely initialized and its status is unknown.
44 HISTORY_SYNC_STATE_UNKNOWN
45 };
46
47 } // namespace ntp_snippets
48
49 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698