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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 // Triggers sync cycle to update |types|. | 180 // Triggers sync cycle to update |types|. |
181 virtual void RefreshTypesForTest(ModelTypeSet types) = 0; | 181 virtual void RefreshTypesForTest(ModelTypeSet types) = 0; |
182 | 182 |
183 // See SyncManager::ClearServerData. | 183 // See SyncManager::ClearServerData. |
184 virtual void ClearServerData( | 184 virtual void ClearServerData( |
185 const SyncManager::ClearServerDataCallback& callback) = 0; | 185 const SyncManager::ClearServerDataCallback& callback) = 0; |
186 | 186 |
187 // Notify the syncer that the cookie jar has changed. | 187 // Notify the syncer that the cookie jar has changed. |
188 // See SyncManager::OnCookieJarChanged. | 188 // See SyncManager::OnCookieJarChanged. |
189 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 189 virtual void OnCookieJarChanged(bool account_mismatch, |
| 190 bool empty_jar, |
| 191 const base::Closure& callback) = 0; |
190 | 192 |
191 private: | 193 private: |
192 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 194 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
193 }; | 195 }; |
194 | 196 |
195 } // namespace syncer | 197 } // namespace syncer |
196 | 198 |
197 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 199 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
OLD | NEW |