Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c2e2b2976988ace2f39b233b884457f779ee7bb9 |
| --- /dev/null |
| +++ b/components/ntp_snippets/ntp_snippets_scheduler.h |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SCHEDULER_H_ |
| +#define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SCHEDULER_H_ |
| + |
| +namespace ntp_snippets { |
| + |
| +// Interface to schedule the periodic fetching of snippets. |
| +class NTPSnippetsScheduler { |
|
noyau (Ping after 24h)
2016/02/22 11:58:49
I'm confused about the connection between this cla
Bernhard Bauer
2016/02/22 12:05:12
The component updater does not use the Android sch
Marc Treib
2016/02/22 12:44:31
Currently it just calls FetchSnippets on the servi
|
| + public: |
| + virtual bool Schedule(int period_seconds) = 0; |
| + virtual bool Unschedule() = 0; |
| +}; |
| + |
| +} // namespace ntp_snippets |
| + |
| +#endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SCHEDULER_H_ |