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

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

Issue 488843002: [Sync] Add support for server controlled nudge delays (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 representing an attempt to synchronize the local syncable data 5 // A class representing an attempt to synchronize the local syncable data
6 // store with a sync server. A SyncSession instance is passed as a stateful 6 // store with a sync server. A SyncSession instance is passed as a stateful
7 // bundle throughout the sync cycle. The SyncSession is not reused across 7 // bundle throughout the sync cycle. The SyncSession is not reused across
8 // sync cycles; each cycle starts with a new one. 8 // sync cycles; each cycle starts with a new one.
9 9
10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ 10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual bool IsCurrentlyThrottled() = 0; 64 virtual bool IsCurrentlyThrottled() = 0;
65 65
66 // The client has been instructed to change its short poll interval. 66 // The client has been instructed to change its short poll interval.
67 virtual void OnReceivedShortPollIntervalUpdate( 67 virtual void OnReceivedShortPollIntervalUpdate(
68 const base::TimeDelta& new_interval) = 0; 68 const base::TimeDelta& new_interval) = 0;
69 69
70 // The client has been instructed to change its long poll interval. 70 // The client has been instructed to change its long poll interval.
71 virtual void OnReceivedLongPollIntervalUpdate( 71 virtual void OnReceivedLongPollIntervalUpdate(
72 const base::TimeDelta& new_interval) = 0; 72 const base::TimeDelta& new_interval) = 0;
73 73
74 // The client has been instructed to change its sessions commit 74 // The client has been instructed to change a nudge delay.
75 // delay. 75 virtual void OnReceivedCustomNudgeDelays(
76 virtual void OnReceivedSessionsCommitDelay( 76 const std::map<ModelType, int>& nudge_delays) = 0;
77 const base::TimeDelta& new_delay) = 0;
78 77
79 // Called for the syncer to respond to the error sent by the server. 78 // Called for the syncer to respond to the error sent by the server.
80 virtual void OnSyncProtocolError( 79 virtual void OnSyncProtocolError(
81 const SyncProtocolError& sync_protocol_error) = 0; 80 const SyncProtocolError& sync_protocol_error) = 0;
82 81
83 // Called when the server wants to change the number of hints the client 82 // Called when the server wants to change the number of hints the client
84 // will buffer locally. 83 // will buffer locally.
85 virtual void OnReceivedClientInvalidationHintBufferSize(int size) = 0; 84 virtual void OnReceivedClientInvalidationHintBufferSize(int size) = 0;
86 85
87 // Called when server wants to schedule a retry GU. 86 // Called when server wants to schedule a retry GU.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Our controller for various status and error counters. 134 // Our controller for various status and error counters.
136 scoped_ptr<StatusController> status_controller_; 135 scoped_ptr<StatusController> status_controller_;
137 136
138 DISALLOW_COPY_AND_ASSIGN(SyncSession); 137 DISALLOW_COPY_AND_ASSIGN(SyncSession);
139 }; 138 };
140 139
141 } // namespace sessions 140 } // namespace sessions
142 } // namespace syncer 141 } // namespace syncer
143 142
144 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ 143 #endif // SYNC_SESSIONS_SYNC_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698