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

Side by Side Diff: components/ntp_snippets/remote/remote_suggestions_scheduler.h

Issue 2597653002: [Remote suggestions] Interface for additional triggers for the scheduler (Closed)
Patch Set: Fixing the return type. Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_REMOTE_SUGGESTIONS_SCHEDULER_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_SCHEDULER_H_
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_SCHEDULER_H_ 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_SCHEDULER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace ntp_snippets { 10 namespace ntp_snippets {
11 11
12 // Interface for informing the scheduler. 12 // Interface for informing the scheduler.
13 class RemoteSuggestionsScheduler { 13 class RemoteSuggestionsScheduler {
14 public: 14 public:
15 // External triggers to consider fetching content suggestions.
16 virtual void OnBrowserStartup() = 0;
17 virtual void OnNTPOpened() = 0;
18
15 // Fetch content suggestions. 19 // Fetch content suggestions.
16 virtual void OnPersistentSchedulerWakeUp() = 0; 20 virtual void OnPersistentSchedulerWakeUp() = 0;
17 21
18 // Force rescheduling of fetching. 22 // Force rescheduling of fetching.
19 virtual void RescheduleFetching() = 0; 23 virtual void RescheduleFetching() = 0;
20 }; 24 };
21 25
22 } // namespace ntp_snippets 26 } // namespace ntp_snippets
23 27
24 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_SCHEDULER_H_ 28 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698