| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 to and from various SyncerCommands with the goal of converging the | 7 // bundle to and from various SyncerCommands with the goal of converging the |
| 8 // client view of data with that of the server. The commands twiddle with | 8 // client view of data with that of the server. The commands twiddle with |
| 9 // session status in response to events and hiccups along the way, set and | 9 // session status in response to events and hiccups along the way, set and |
| 10 // query session progress with regards to conflict resolution and applying | 10 // query session progress with regards to conflict resolution and applying |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual bool IsSyncingCurrentlySilenced() = 0; | 63 virtual bool IsSyncingCurrentlySilenced() = 0; |
| 64 | 64 |
| 65 // The client has been instructed to change its short poll interval. | 65 // The client has been instructed to change its short poll interval. |
| 66 virtual void OnReceivedShortPollIntervalUpdate( | 66 virtual void OnReceivedShortPollIntervalUpdate( |
| 67 const base::TimeDelta& new_interval) = 0; | 67 const base::TimeDelta& new_interval) = 0; |
| 68 | 68 |
| 69 // The client has been instructed to change its long poll interval. | 69 // The client has been instructed to change its long poll interval. |
| 70 virtual void OnReceivedLongPollIntervalUpdate( | 70 virtual void OnReceivedLongPollIntervalUpdate( |
| 71 const base::TimeDelta& new_interval) = 0; | 71 const base::TimeDelta& new_interval) = 0; |
| 72 | 72 |
| 73 // The client has been instructed to change its sessions commit |
| 74 // delay. |
| 75 virtual void OnReceivedSessionsCommitDelay( |
| 76 const base::TimeDelta& new_delay) = 0; |
| 77 |
| 73 // The client needs to cease and desist syncing at once. This occurs when | 78 // The client needs to cease and desist syncing at once. This occurs when |
| 74 // the Syncer detects that the backend store has fundamentally changed or | 79 // the Syncer detects that the backend store has fundamentally changed or |
| 75 // is a different instance altogether (e.g. swapping from a test instance | 80 // is a different instance altogether (e.g. swapping from a test instance |
| 76 // to production, or a global stop syncing operation has wiped the store). | 81 // to production, or a global stop syncing operation has wiped the store). |
| 77 virtual void OnShouldStopSyncingPermanently() = 0; | 82 virtual void OnShouldStopSyncingPermanently() = 0; |
| 78 | 83 |
| 79 protected: | 84 protected: |
| 80 virtual ~Delegate() {} | 85 virtual ~Delegate() {} |
| 81 }; | 86 }; |
| 82 | 87 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 188 |
| 184 private: | 189 private: |
| 185 SyncSession* session_; | 190 SyncSession* session_; |
| 186 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); | 191 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); |
| 187 }; | 192 }; |
| 188 | 193 |
| 189 } // namespace sessions | 194 } // namespace sessions |
| 190 } // namespace browser_sync | 195 } // namespace browser_sync |
| 191 | 196 |
| 192 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSION_H_ | 197 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSION_H_ |
| OLD | NEW |