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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // for all counters be emitted. | 174 // for all counters be emitted. |
175 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; | 175 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; |
176 | 176 |
177 // Disables the sending of directory type debug counters. | 177 // Disables the sending of directory type debug counters. |
178 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; | 178 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; |
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(const base::Closure& callback) = 0; |
185 const SyncManager::ClearServerDataCallback& callback) = 0; | |
186 | 185 |
187 // Notify the syncer that the cookie jar has changed. | 186 // Notify the syncer that the cookie jar has changed. |
188 // See SyncManager::OnCookieJarChanged. | 187 // See SyncManager::OnCookieJarChanged. |
189 virtual void OnCookieJarChanged(bool account_mismatch, | 188 virtual void OnCookieJarChanged(bool account_mismatch, |
190 bool empty_jar, | 189 bool empty_jar, |
191 const base::Closure& callback) = 0; | 190 const base::Closure& callback) = 0; |
192 | 191 |
193 private: | 192 private: |
194 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 193 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
195 }; | 194 }; |
196 | 195 |
197 } // namespace syncer | 196 } // namespace syncer |
198 | 197 |
199 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 198 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
OLD | NEW |