| 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; |
| 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 Loading... |
| 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_ |
| OLD | NEW |