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

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

Issue 2158883002: Change NTPSnippetsBridge to read from ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offlinepagesprovider
Patch Set: Marc's comments; Rebase Created 4 years, 4 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Content suggestions are not available because an error occured when loading 44 // Content suggestions are not available because an error occured when loading
45 // or updating them. 45 // or updating them.
46 LOADING_ERROR 46 LOADING_ERROR
47 }; 47 };
48 48
49 // Determines whether the given status is one of the AVAILABLE statuses. 49 // Determines whether the given status is one of the AVAILABLE statuses.
50 bool IsContentSuggestionsCategoryStatusAvailable( 50 bool IsContentSuggestionsCategoryStatusAvailable(
51 ContentSuggestionsCategoryStatus status); 51 ContentSuggestionsCategoryStatus status);
52 52
53 // 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 // content.
56 bool IsContentSuggestionsCategoryStatusInitOrAvailable(
57 ContentSuggestionsCategoryStatus status);
58
53 } // namespace ntp_snippets 59 } // namespace ntp_snippets
54 60
55 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_ 61 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/content_suggestions_category_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698