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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 PrefService* pref_service, | 63 PrefService* pref_service, |
64 std::unique_ptr<base::Clock> clock); | 64 std::unique_ptr<base::Clock> clock); |
65 | 65 |
66 ~SchedulingRemoteSuggestionsProvider() override; | 66 ~SchedulingRemoteSuggestionsProvider() override; |
67 | 67 |
68 static void RegisterProfilePrefs(PrefRegistrySimple* registry); | 68 static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
69 | 69 |
70 // RemoteSuggestionsScheduler implementation. | 70 // RemoteSuggestionsScheduler implementation. |
71 void RescheduleFetching() override; | 71 void RescheduleFetching() override; |
72 void OnPersistentSchedulerWakeUp() override; | 72 void OnPersistentSchedulerWakeUp() override; |
73 void OnBrowserStartup() override; | 73 void OnBrowserForegrounded() override; |
| 74 void OnBrowserColdStart() override; |
74 void OnNTPOpened() override; | 75 void OnNTPOpened() override; |
75 | 76 |
76 // RemoteSuggestionsProvider implementation. | 77 // RemoteSuggestionsProvider implementation. |
77 void SetProviderStatusCallback( | 78 void SetProviderStatusCallback( |
78 std::unique_ptr<ProviderStatusCallback> callback) override; | 79 std::unique_ptr<ProviderStatusCallback> callback) override; |
79 void RefetchInTheBackground( | 80 void RefetchInTheBackground( |
80 std::unique_ptr<FetchStatusCallback> callback) override; | 81 std::unique_ptr<FetchStatusCallback> callback) override; |
81 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging() | 82 const NTPSnippetsFetcher* snippets_fetcher_for_testing_and_debugging() |
82 const override; | 83 const override; |
83 | 84 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 172 |
172 PrefService* pref_service_; | 173 PrefService* pref_service_; |
173 std::unique_ptr<base::Clock> clock_; | 174 std::unique_ptr<base::Clock> clock_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider); | 176 DISALLOW_COPY_AND_ASSIGN(SchedulingRemoteSuggestionsProvider); |
176 }; | 177 }; |
177 | 178 |
178 } // namespace ntp_snippets | 179 } // namespace ntp_snippets |
179 | 180 |
180 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER
_H_ | 181 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_SCHEDULING_REMOTE_SUGGESTIONS_PROVIDER
_H_ |
OLD | NEW |