| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // A class to track the outstanding work required to bring the client back into | 5 // A class to track the outstanding work required to bring the client back into |
| 6 // sync with the server. | 6 // sync with the server. |
| 7 #ifndef SYNC_SESSIONS_NUDGE_TRACKER_H_ | 7 #ifndef SYNC_SESSIONS_NUDGE_TRACKER_H_ |
| 8 #define SYNC_SESSIONS_NUDGE_TRACKER_H_ | 8 #define SYNC_SESSIONS_NUDGE_TRACKER_H_ |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 ModelTypeSet GetThrottledTypes() const; | 87 ModelTypeSet GetThrottledTypes() const; |
| 88 | 88 |
| 89 // Returns the 'source' of the GetUpdate request. | 89 // Returns the 'source' of the GetUpdate request. |
| 90 // | 90 // |
| 91 // This flag is deprecated, but still used by the server. There can be more | 91 // This flag is deprecated, but still used by the server. There can be more |
| 92 // than one reason to perform a particular sync cycle. The GetUpdatesTrigger | 92 // than one reason to perform a particular sync cycle. The GetUpdatesTrigger |
| 93 // message will contain more reliable information about the reasons for | 93 // message will contain more reliable information about the reasons for |
| 94 // performing a sync. | 94 // performing a sync. |
| 95 // | 95 // |
| 96 // See the implementation for important information about the coalesce logic. | 96 // See the implementation for important information about the coalesce logic. |
| 97 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source() const; | 97 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource GetLegacySource() const; |
| 98 | 98 |
| 99 // Fills a GetUpdatesTrigger message for the next GetUpdates request. This is | 99 // Fills a GetUpdatesTrigger message for the next GetUpdates request. This is |
| 100 // used by the DownloadUpdatesCommand to dump lots of useful per-type state | 100 // used by the DownloadUpdatesCommand to dump lots of useful per-type state |
| 101 // information into the GetUpdate request before sending it off to the server. | 101 // information into the GetUpdate request before sending it off to the server. |
| 102 void FillProtoMessage( | 102 void FillProtoMessage( |
| 103 ModelType type, | 103 ModelType type, |
| 104 sync_pb::GetUpdateTriggers* msg) const; | 104 sync_pb::GetUpdateTriggers* msg) const; |
| 105 | 105 |
| 106 // Fills a ProgressMarker with single legacy notification hint expected by the | 106 // Fills a ProgressMarker with single legacy notification hint expected by the |
| 107 // sync server. Newer servers will rely on the data set by FillProtoMessage() | 107 // sync server. Newer servers will rely on the data set by FillProtoMessage() |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // currently in a sync cycle. | 171 // currently in a sync cycle. |
| 172 base::TimeTicks sync_cycle_start_time_; | 172 base::TimeTicks sync_cycle_start_time_; |
| 173 | 173 |
| 174 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); | 174 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 } // namespace sessions | 177 } // namespace sessions |
| 178 } // namespace syncer | 178 } // namespace syncer |
| 179 | 179 |
| 180 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_ | 180 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_ |
| OLD | NEW |