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

Unified Diff: components/ntp_snippets/ntp_snippets_scheduler.h

Issue 2357163004: [NTP Snippets] Remove scheduled re-scheduling (Closed)
Patch Set: super-nit, rebase Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_launcher.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_scheduler.h
diff --git a/components/ntp_snippets/ntp_snippets_scheduler.h b/components/ntp_snippets/ntp_snippets_scheduler.h
index a2a4b42547ac33adb3b31982ed5c9e1bf1ebb1e0..1b9517c3b20f7a0f69217819d113c50ad1f5c0f5 100644
--- a/components/ntp_snippets/ntp_snippets_scheduler.h
+++ b/components/ntp_snippets/ntp_snippets_scheduler.h
@@ -13,16 +13,13 @@ namespace ntp_snippets {
// Interface to schedule the periodic fetching of snippets.
class NTPSnippetsScheduler {
public:
- // Schedule periodic fetching of snippets, with different period depending on
- // network state, and also set up a delay after which the periods may change.
- // The concrete implementation should call
- // NTPSnippetsService::FetchSnippets once per period, and
- // NTPSnippetsService::RescheduleFetching at |reschedule_time|.
- // Any of the values can be zero to indicate that the corresponding task
+ // Schedule periodic fetching of snippets, with different periods depending on
+ // network state. The concrete implementation should call
+ // NTPSnippetsService::FetchSnippets once per period.
+ // Any of the periods can be zero to indicate that the corresponding task
// should not be scheduled.
virtual bool Schedule(base::TimeDelta period_wifi,
- base::TimeDelta period_fallback,
- base::Time reschedule_time) = 0;
+ base::TimeDelta period_fallback) = 0;
// Cancel any scheduled tasks.
virtual bool Unschedule() = 0;
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_launcher.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698