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

Unified 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 4 years 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 | « no previous file | components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 be4c215e89b4445cd52b60b76283f7b4ed6137c4..953592ae461dce70fdfd2e9a78a89e0511ece865 100644
--- a/components/ntp_snippets/remote/remote_suggestions_scheduler.h
+++ b/components/ntp_snippets/remote/remote_suggestions_scheduler.h
@@ -12,6 +12,10 @@ namespace ntp_snippets {
// Interface for informing the scheduler.
class RemoteSuggestionsScheduler {
public:
+ // External triggers to consider fetching content suggestions.
+ virtual void OnBrowserStartup() = 0;
+ virtual void OnNTPOpened() = 0;
+
// Fetch content suggestions.
virtual void OnPersistentSchedulerWakeUp() = 0;
« 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