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

Unified Diff: sync/engine/sync_scheduler_impl.h

Issue 14963002: sync: Report GetUpdate triggers to the server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 7 years, 7 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
Index: sync/engine/sync_scheduler_impl.h
diff --git a/sync/engine/sync_scheduler_impl.h b/sync/engine/sync_scheduler_impl.h
index efcccd39b07ff3c803f70be35fce15302e6d68cb..3a404a6f89dfba81f37d17b188aa3280aa317c0d 100644
--- a/sync/engine/sync_scheduler_impl.h
+++ b/sync/engine/sync_scheduler_impl.h
@@ -56,13 +56,16 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
virtual bool ScheduleConfiguration(
const ConfigurationParams& params) OVERRIDE;
virtual void RequestStop(const base::Closure& callback) OVERRIDE;
- virtual void ScheduleNudgeAsync(
+ virtual void ScheduleLocalNudge(
const base::TimeDelta& desired_delay,
- NudgeSource source,
ModelTypeSet types,
const tracked_objects::Location& nudge_location) OVERRIDE;
- virtual void ScheduleNudgeWithStatesAsync(
- const base::TimeDelta& desired_delay, NudgeSource source,
+ virtual void ScheduleLocalRefreshRequest(
+ const base::TimeDelta& desired_delay,
+ ModelTypeSet types,
+ const tracked_objects::Location& nudge_location) OVERRIDE;
+ virtual void ScheduleInvalidation(
+ const base::TimeDelta& desired_delay,
const ModelTypeInvalidationMap& invalidation_map,
const tracked_objects::Location& nudge_location) OVERRIDE;
virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE;
@@ -187,8 +190,6 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
// save it for later, depending on the scheduler's current state.
void ScheduleNudgeImpl(
const base::TimeDelta& delay,
- sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
- const ModelTypeInvalidationMap& invalidation_map,
const tracked_objects::Location& nudge_location);
// Returns true if the client is currently in exponential backoff.
@@ -222,7 +223,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
// SyncScheduler is the ultimate choke-point for all such invocations (with
// and without InvalidationState variants, all NudgeSources, etc) and as such
// is the most flexible place to do this bookkeeping.
- void UpdateNudgeTimeRecords(const sessions::SyncSourceInfo& info);
+ void UpdateNudgeTimeRecords(ModelTypeSet types);
virtual void OnActionableError(const sessions::SyncSessionSnapshot& snapshot);

Powered by Google App Engine
This is Rietveld 408576698