OLD | NEW |
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 Loading... |
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, base::TimeDelta>& 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 Loading... |
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_ |
OLD | NEW |