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

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: Fix handling of NEW_CLIENT GU source 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
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d5ee56c27a2ce0089ee450e4e3008e87919f04f8 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 ScheduleInvalidationNudge(
+ const base::TimeDelta& desired_delay,
const ModelTypeInvalidationMap& invalidation_map,
const tracked_objects::Location& nudge_location) OVERRIDE;
virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE;
@@ -82,6 +85,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
const base::TimeDelta& new_interval) OVERRIDE;
virtual void OnReceivedSessionsCommitDelay(
const base::TimeDelta& new_delay) OVERRIDE;
+ virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE;
virtual void OnShouldStopSyncingPermanently() OVERRIDE;
virtual void OnSyncProtocolError(
const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
@@ -187,8 +191,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 +224,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);
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698