Index: sync/engine/sync_scheduler_impl.cc |
diff --git a/sync/engine/sync_scheduler_impl.cc b/sync/engine/sync_scheduler_impl.cc |
index 82cdcce1c203a7da0c19c1104b1613113c012fac..b2180fbded8e803e691895fe562d4c82dd5be815 100644 |
--- a/sync/engine/sync_scheduler_impl.cc |
+++ b/sync/engine/sync_scheduler_impl.cc |
@@ -343,7 +343,7 @@ bool SyncSchedulerImpl::ScheduleConfiguration( |
session_context_, |
this, |
SyncSourceInfo(params.source, |
- ModelSafeRoutingInfoToStateMap( |
+ ModelSafeRoutingInfoToInvalidationMap( |
restricted_routes, |
std::string())), |
restricted_routes, |
@@ -415,7 +415,7 @@ SyncSchedulerImpl::JobProcessDecision SyncSchedulerImpl::DecideOnJob( |
if (job.purpose == SyncSessionJob::NUDGE && |
job.session->source().updates_source == GetUpdatesCallerInfo::LOCAL) { |
ModelTypeSet requested_types; |
- for (ModelTypeStateMap::const_iterator i = |
+ for (ModelTypeInvalidationMap::const_iterator i = |
job.session->source().types.begin(); |
i != job.session->source().types.end(); |
++i) { |
@@ -579,29 +579,29 @@ void SyncSchedulerImpl::ScheduleNudgeAsync( |
<< "source " << GetNudgeSourceString(source) << ", " |
<< "types " << ModelTypeSetToString(types); |
- ModelTypeStateMap type_state_map = |
- ModelTypeSetToStateMap(types, std::string()); |
+ ModelTypeInvalidationMap invalidation_map = |
+ ModelTypeSetToInvalidationMap(types, std::string()); |
SyncSchedulerImpl::ScheduleNudgeImpl(delay, |
GetUpdatesFromNudgeSource(source), |
- type_state_map, |
+ invalidation_map, |
false, |
nudge_location); |
} |
void SyncSchedulerImpl::ScheduleNudgeWithStatesAsync( |
const TimeDelta& delay, |
- NudgeSource source, const ModelTypeStateMap& type_state_map, |
+ NudgeSource source, const ModelTypeInvalidationMap& invalidation_map, |
const tracked_objects::Location& nudge_location) { |
DCHECK_EQ(MessageLoop::current(), sync_loop_); |
SDVLOG_LOC(nudge_location, 2) |
<< "Nudge scheduled with delay " << delay.InMilliseconds() << " ms, " |
<< "source " << GetNudgeSourceString(source) << ", " |
<< "payloads " |
- << ModelTypeStateMapToString(type_state_map); |
+ << ModelTypeInvalidationMapToString(invalidation_map); |
SyncSchedulerImpl::ScheduleNudgeImpl(delay, |
GetUpdatesFromNudgeSource(source), |
- type_state_map, |
+ invalidation_map, |
false, |
nudge_location); |
} |
@@ -609,20 +609,20 @@ void SyncSchedulerImpl::ScheduleNudgeWithStatesAsync( |
void SyncSchedulerImpl::ScheduleNudgeImpl( |
const TimeDelta& delay, |
GetUpdatesCallerInfo::GetUpdatesSource source, |
- const ModelTypeStateMap& type_state_map, |
+ const ModelTypeInvalidationMap& invalidation_map, |
bool is_canary_job, const tracked_objects::Location& nudge_location) { |
DCHECK_EQ(MessageLoop::current(), sync_loop_); |
- DCHECK(!type_state_map.empty()) << "Nudge scheduled for no types!"; |
+ DCHECK(!invalidation_map.empty()) << "Nudge scheduled for no types!"; |
SDVLOG_LOC(nudge_location, 2) |
<< "In ScheduleNudgeImpl with delay " |
<< delay.InMilliseconds() << " ms, " |
<< "source " << GetUpdatesSourceString(source) << ", " |
<< "payloads " |
- << ModelTypeStateMapToString(type_state_map) |
+ << ModelTypeInvalidationMapToString(invalidation_map) |
<< (is_canary_job ? " (canary)" : ""); |
- SyncSourceInfo info(source, type_state_map); |
+ SyncSourceInfo info(source, invalidation_map); |
UpdateNudgeTimeRecords(info); |
SyncSession* session(CreateSyncSession(info)); |
@@ -813,7 +813,7 @@ void SyncSchedulerImpl::UpdateNudgeTimeRecords(const SyncSourceInfo& info) { |
base::TimeTicks now = TimeTicks::Now(); |
// Update timing information for how often datatypes are triggering nudges. |
- for (ModelTypeStateMap::const_iterator iter = info.types.begin(); |
+ for (ModelTypeInvalidationMap::const_iterator iter = info.types.begin(); |
iter != info.types.end(); |
++iter) { |
base::TimeTicks previous = last_local_nudges_by_model_type_[iter->first]; |
@@ -1053,9 +1053,9 @@ SyncSession* SyncSchedulerImpl::CreateSyncSession( |
void SyncSchedulerImpl::PollTimerCallback() { |
DCHECK_EQ(MessageLoop::current(), sync_loop_); |
ModelSafeRoutingInfo r; |
- ModelTypeStateMap type_state_map = |
- ModelSafeRoutingInfoToStateMap(r, std::string()); |
- SyncSourceInfo info(GetUpdatesCallerInfo::PERIODIC, type_state_map); |
+ ModelTypeInvalidationMap invalidation_map = |
+ ModelSafeRoutingInfoToInvalidationMap(r, std::string()); |
+ SyncSourceInfo info(GetUpdatesCallerInfo::PERIODIC, invalidation_map); |
SyncSession* s = CreateSyncSession(info); |
SyncSessionJob job(SyncSessionJob::POLL, TimeTicks::Now(), |