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

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

Issue 2597653002: [Remote suggestions] Interface for additional triggers for the scheduler (Closed)
Patch Set: Fixing the return type. 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 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_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER_H_
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER_H_ 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const UserClassifier* user_classifier, 57 const UserClassifier* user_classifier,
58 PrefService* pref_service); 58 PrefService* pref_service);
59 59
60 ~SchedulingRemoteSuggestionsProvider() override; 60 ~SchedulingRemoteSuggestionsProvider() override;
61 61
62 static void RegisterProfilePrefs(PrefRegistrySimple* registry); 62 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
63 63
64 // RemoteSuggestionsScheduler implementation. 64 // RemoteSuggestionsScheduler implementation.
65 void RescheduleFetching() override; 65 void RescheduleFetching() override;
66 void OnPersistentSchedulerWakeUp() override; 66 void OnPersistentSchedulerWakeUp() override;
67 void OnBrowserStartup() override;
68 void OnNTPOpened() override;
67 69
68 // RemoteSuggestionsProvider implementation. 70 // RemoteSuggestionsProvider implementation.
69 void SetProviderStatusCallback( 71 void SetProviderStatusCallback(
70 std::unique_ptr<ProviderStatusCallback> callback) override; 72 std::unique_ptr<ProviderStatusCallback> callback) override;
71 void RefetchInTheBackground( 73 void RefetchInTheBackground(
72 std::unique_ptr<FetchStatusCallback> callback) override; 74 std::unique_ptr<FetchStatusCallback> callback) override;
73 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging() 75 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging()
74 const override; 76 const override;
75 77
76 // ContentSuggestionsProvider implementation. 78 // ContentSuggestionsProvider implementation.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const UserClassifier* user_classifier_; 140 const UserClassifier* user_classifier_;
139 141
140 PrefService* pref_service_; 142 PrefService* pref_service_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider); 144 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider);
143 }; 145 };
144 146
145 } // namespace ntp_snippets 147 } // namespace ntp_snippets
146 148
147 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER _H_ 149 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698