| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 void SaveChanges(); | 249 void SaveChanges(); |
| 250 | 250 |
| 251 void DoClearServerData( | 251 void DoClearServerData( |
| 252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); | 252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); |
| 253 | 253 |
| 254 // Notify the syncer that the cookie jar has changed. | 254 // Notify the syncer that the cookie jar has changed. |
| 255 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar); | 255 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar); |
| 256 | 256 |
| 257 private: | 257 private: |
| 258 friend class base::RefCountedThreadSafe<SyncBackendHostCore>; | 258 friend class base::RefCountedThreadSafe<SyncBackendHostCore>; |
| 259 friend class SyncBackendHostForProfileSyncTest; | |
| 260 | 259 |
| 261 ~SyncBackendHostCore() override; | 260 ~SyncBackendHostCore() override; |
| 262 | 261 |
| 263 // Invoked when initialization of syncapi is complete and we can start | 262 // Invoked when initialization of syncapi is complete and we can start |
| 264 // our timer. | 263 // our timer. |
| 265 // This must be called from the thread on which SaveChanges is intended to | 264 // This must be called from the thread on which SaveChanges is intended to |
| 266 // be run on; the host's |registrar_->sync_thread()|. | 265 // be run on; the host's |registrar_->sync_thread()|. |
| 267 void StartSavingChanges(); | 266 void StartSavingChanges(); |
| 268 | 267 |
| 269 void ClearServerDataDone(const base::Closure& frontend_callback); | 268 void ClearServerDataDone(const base::Closure& frontend_callback); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; | 324 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; |
| 326 | 325 |
| 327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 326 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 328 | 327 |
| 329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 328 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 330 }; | 329 }; |
| 331 | 330 |
| 332 } // namespace browser_sync | 331 } // namespace browser_sync |
| 333 | 332 |
| 334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 333 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |