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

Side by Side Diff: sync/sessions/nudge_tracker.h

Issue 891123003: Revert of Sync commit errors should temporarily re-enable trigger pre-commit getupdates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sync/sessions/data_type_tracker.cc ('k') | sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Takes note of the receipt of an invalidation notice from the server. 64 // Takes note of the receipt of an invalidation notice from the server.
65 // Returns the current nudge delay for a remote invalidation. 65 // Returns the current nudge delay for a remote invalidation.
66 base::TimeDelta RecordRemoteInvalidation( 66 base::TimeDelta RecordRemoteInvalidation(
67 syncer::ModelType type, 67 syncer::ModelType type,
68 scoped_ptr<InvalidationInterface> invalidation); 68 scoped_ptr<InvalidationInterface> invalidation);
69 69
70 // Take note that an initial sync is pending for this type. 70 // Take note that an initial sync is pending for this type.
71 void RecordInitialSyncRequired(syncer::ModelType type); 71 void RecordInitialSyncRequired(syncer::ModelType type);
72 72
73 // Takes note that the conflict happended for this type, need to sync to
74 // resolve conflict locally.
75 void RecordCommitConflict(syncer::ModelType type);
76
77 // These functions should be called to keep this class informed of the status 73 // These functions should be called to keep this class informed of the status
78 // of the connection to the invalidations server. 74 // of the connection to the invalidations server.
79 void OnInvalidationsEnabled(); 75 void OnInvalidationsEnabled();
80 void OnInvalidationsDisabled(); 76 void OnInvalidationsDisabled();
81 77
82 // Marks |types| as being throttled from |now| until |now| + |length|. 78 // Marks |types| as being throttled from |now| until |now| + |length|.
83 void SetTypesThrottledUntil(ModelTypeSet types, 79 void SetTypesThrottledUntil(ModelTypeSet types,
84 base::TimeDelta length, 80 base::TimeDelta length,
85 base::TimeTicks now); 81 base::TimeTicks now);
86 82
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 base::TimeDelta local_refresh_nudge_delay_; 197 base::TimeDelta local_refresh_nudge_delay_;
202 base::TimeDelta remote_invalidation_nudge_delay_; 198 base::TimeDelta remote_invalidation_nudge_delay_;
203 199
204 DISALLOW_COPY_AND_ASSIGN(NudgeTracker); 200 DISALLOW_COPY_AND_ASSIGN(NudgeTracker);
205 }; 201 };
206 202
207 } // namespace sessions 203 } // namespace sessions
208 } // namespace syncer 204 } // namespace syncer
209 205
210 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_ 206 #endif // SYNC_SESSIONS_NUDGE_TRACKER_H_
OLDNEW
« no previous file with comments | « sync/sessions/data_type_tracker.cc ('k') | sync/sessions/nudge_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698