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

Side by Side Diff: components/ntp_snippets/remote/remote_suggestions_provider.h

Issue 2519053002: 📰 Let the backend trigger sign in related refreshes (Closed)
Patch Set: Fix iOS build Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id, 119 void FetchSuggestionImage(const ContentSuggestion::ID& suggestion_id,
120 const ImageFetchedCallback& callback) override; 120 const ImageFetchedCallback& callback) override;
121 void Fetch(const Category& category, 121 void Fetch(const Category& category,
122 const std::set<std::string>& known_suggestion_ids, 122 const std::set<std::string>& known_suggestion_ids,
123 const FetchDoneCallback& callback) override; 123 const FetchDoneCallback& callback) override;
124 void ClearHistory( 124 void ClearHistory(
125 base::Time begin, 125 base::Time begin,
126 base::Time end, 126 base::Time end,
127 const base::Callback<bool(const GURL& url)>& filter) override; 127 const base::Callback<bool(const GURL& url)>& filter) override;
128 void ClearCachedSuggestions(Category category) override; 128 void ClearCachedSuggestions(Category category) override;
129 void OnSignInStateChanged() override;
129 void GetDismissedSuggestionsForDebugging( 130 void GetDismissedSuggestionsForDebugging(
130 Category category, 131 Category category,
131 const DismissedSuggestionsCallback& callback) override; 132 const DismissedSuggestionsCallback& callback) override;
132 void ClearDismissedSuggestionsForDebugging(Category category) override; 133 void ClearDismissedSuggestionsForDebugging(Category category) override;
133 134
134 // Returns the maximum number of snippets that will be shown at once. 135 // Returns the maximum number of snippets that will be shown at once.
135 static int GetMaxSnippetCountForTesting(); 136 static int GetMaxSnippetCountForTesting();
136 137
137 // Available snippets, only for unit tests. 138 // Available snippets, only for unit tests.
138 // TODO(treib): Get rid of this. Tests should use a fake observer instead. 139 // TODO(treib): Get rid of this. Tests should use a fake observer instead.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 397
397 // Request throttler for limiting requests to thumbnail images. 398 // Request throttler for limiting requests to thumbnail images.
398 RequestThrottler thumbnail_requests_throttler_; 399 RequestThrottler thumbnail_requests_throttler_;
399 400
400 DISALLOW_COPY_AND_ASSIGN(RemoteSuggestionsProvider); 401 DISALLOW_COPY_AND_ASSIGN(RemoteSuggestionsProvider);
401 }; 402 };
402 403
403 } // namespace ntp_snippets 404 } // namespace ntp_snippets
404 405
405 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_ 406 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698