OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "sync/sessions/nudge_tracker.h" | 5 #include "sync/sessions/nudge_tracker.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "sync/internal_api/public/base/invalidation.h" | |
9 #include "sync/notifier/invalidation_util.h" | |
10 #include "sync/notifier/object_id_invalidation_map.h" | |
11 #include "sync/protocol/sync.pb.h" | 8 #include "sync/protocol/sync.pb.h" |
12 | 9 |
13 namespace syncer { | 10 namespace syncer { |
14 namespace sessions { | 11 namespace sessions { |
15 | 12 |
16 size_t NudgeTracker::kDefaultMaxPayloadsPerType = 10; | 13 size_t NudgeTracker::kDefaultMaxPayloadsPerType = 10; |
17 | 14 |
18 NudgeTracker::NudgeTracker() | 15 NudgeTracker::NudgeTracker() |
19 : type_tracker_deleter_(&type_trackers_), | 16 : type_tracker_deleter_(&type_trackers_), |
20 invalidations_enabled_(false), | 17 invalidations_enabled_(false), |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 it->second->UpdatePayloadBufferSize(size); | 298 it->second->UpdatePayloadBufferSize(size); |
302 } | 299 } |
303 } | 300 } |
304 | 301 |
305 void NudgeTracker::SetNextRetryTime(base::TimeTicks retry_time) { | 302 void NudgeTracker::SetNextRetryTime(base::TimeTicks retry_time) { |
306 next_retry_time_ = retry_time; | 303 next_retry_time_ = retry_time; |
307 } | 304 } |
308 | 305 |
309 } // namespace sessions | 306 } // namespace sessions |
310 } // namespace syncer | 307 } // namespace syncer |
OLD | NEW |