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_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 Loading... |
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; | 67 void OnBrowserResumed() override; |
68 void OnNTPOpened() override; | 68 void OnNTPOpened() override; |
69 | 69 |
70 // RemoteSuggestionsProvider implementation. | 70 // RemoteSuggestionsProvider implementation. |
71 void SetProviderStatusCallback( | 71 void SetProviderStatusCallback( |
72 std::unique_ptr<ProviderStatusCallback> callback) override; | 72 std::unique_ptr<ProviderStatusCallback> callback) override; |
73 void RefetchInTheBackground( | 73 void RefetchInTheBackground( |
74 std::unique_ptr<FetchStatusCallback> callback) override; | 74 std::unique_ptr<FetchStatusCallback> callback) override; |
75 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging() | 75 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging() |
76 const override; | 76 const override; |
77 | 77 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const UserClassifier* user_classifier_; | 140 const UserClassifier* user_classifier_; |
141 | 141 |
142 PrefService* pref_service_; | 142 PrefService* pref_service_; |
143 | 143 |
144 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider); | 144 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace ntp_snippets | 147 } // namespace ntp_snippets |
148 | 148 |
149 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER
_H_ | 149 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER
_H_ |
OLD | NEW |