| Index: components/ntp_snippets/remote/remote_suggestions_scheduler.h
|
| diff --git a/components/ntp_snippets/remote/remote_suggestions_scheduler.h b/components/ntp_snippets/remote/remote_suggestions_scheduler.h
|
| index 7621161a824faf344f39462ac0f59acfc379db69..9a8f4367a9d0f6c154bee9fbdf1c6767af4e33a8 100644
|
| --- a/components/ntp_snippets/remote/remote_suggestions_scheduler.h
|
| +++ b/components/ntp_snippets/remote/remote_suggestions_scheduler.h
|
| @@ -12,6 +12,23 @@ namespace ntp_snippets {
|
| // Interface for informing the scheduler.
|
| class RemoteSuggestionsScheduler {
|
| public:
|
| + // Internal triggers to consider fetching content suggestions.
|
| +
|
| + // Called whenever the remote suggestions provider becomes active (on startup,
|
| + // or later on).
|
| + virtual void OnProviderActivated() = 0;
|
| +
|
| + // Called whenever the remote suggestions provider becomes inactive (on
|
| + // startup, or later on).
|
| + virtual void OnProviderInactivated() = 0;
|
| +
|
| + // Called whenever the remote suggestions provider clears all suggestions.
|
| + virtual void OnSuggestionsCleared() = 0;
|
| +
|
| + // Called whenever the remote suggestions provider decides to clear inner
|
| + // state as a result of user's history being cleared.
|
| + virtual void OnHistoryCleared() = 0;
|
| +
|
| // External triggers to consider fetching content suggestions.
|
|
|
| // Called whenever chrome is started warm or the user switches to Chrome.
|
|
|