Chromium Code Reviews| 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 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 | 133 |
| 134 // Turns on encryption of all present and future sync data. | 134 // Turns on encryption of all present and future sync data. |
| 135 virtual void EnableEncryptEverything() = 0; | 135 virtual void EnableEncryptEverything() = 0; |
| 136 | 136 |
| 137 // Obtain a handle to the UserShare needed for creating transactions. Should | 137 // Obtain a handle to the UserShare needed for creating transactions. Should |
| 138 // not be called before we signal initialization is complete with | 138 // not be called before we signal initialization is complete with |
| 139 // OnBackendInitialized(). | 139 // OnBackendInitialized(). |
| 140 virtual UserShare* GetUserShare() const = 0; | 140 virtual UserShare* GetUserShare() const = 0; |
| 141 | 141 |
| 142 // Called from any thread to obtain current status information in detailed or | 142 // Called from any thread to obtain current status information in detailed or |
| 143 // summarized form. | 143 // summarized form. |
|
pavely
2017/01/12 00:27:13
GetLastCycleSnapshot() was that summarized form me
maxbogue
2017/01/12 01:55:02
Done.
| |
| 144 virtual Status GetDetailedStatus() = 0; | 144 virtual Status GetDetailedStatus() = 0; |
| 145 virtual SyncCycleSnapshot GetLastCycleSnapshot() const = 0; | |
| 146 | 145 |
| 147 // Determines if the underlying sync engine has made any local changes to | 146 // Determines if the underlying sync engine has made any local changes to |
| 148 // items that have not yet been synced with the server. | 147 // items that have not yet been synced with the server. |
| 149 // ONLY CALL THIS IF OnInitializationComplete was called! | 148 // ONLY CALL THIS IF OnInitializationComplete was called! |
| 150 virtual bool HasUnsyncedItems() const = 0; | 149 virtual bool HasUnsyncedItems() const = 0; |
| 151 | 150 |
| 152 // Whether or not we are syncing encryption keys. | 151 // Whether or not we are syncing encryption keys. |
| 153 virtual bool IsNigoriEnabled() const = 0; | 152 virtual bool IsNigoriEnabled() const = 0; |
| 154 | 153 |
| 155 // Returns the type of passphrase being used to encrypt data. See | 154 // Returns the type of passphrase being used to encrypt data. See |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 // See SyncManager::OnCookieJarChanged. | 197 // See SyncManager::OnCookieJarChanged. |
| 199 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 198 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
| 200 | 199 |
| 201 private: | 200 private: |
| 202 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 201 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 } // namespace syncer | 204 } // namespace syncer |
| 206 | 205 |
| 207 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 206 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| OLD | NEW |