| 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_IMPL_SYNC_MANAGER_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "components/sync/engine_impl/net/server_connection_manager.h" | 26 #include "components/sync/engine_impl/net/server_connection_manager.h" |
| 27 #include "components/sync/engine_impl/nudge_handler.h" | 27 #include "components/sync/engine_impl/nudge_handler.h" |
| 28 #include "components/sync/engine_impl/sync_encryption_handler_impl.h" | 28 #include "components/sync/engine_impl/sync_encryption_handler_impl.h" |
| 29 #include "components/sync/engine_impl/sync_engine_event_listener.h" | 29 #include "components/sync/engine_impl/sync_engine_event_listener.h" |
| 30 #include "components/sync/js/js_backend.h" | 30 #include "components/sync/js/js_backend.h" |
| 31 #include "components/sync/syncable/change_reorder_buffer.h" | 31 #include "components/sync/syncable/change_reorder_buffer.h" |
| 32 #include "components/sync/syncable/directory_change_delegate.h" | 32 #include "components/sync/syncable/directory_change_delegate.h" |
| 33 #include "components/sync/syncable/user_share.h" | 33 #include "components/sync/syncable/user_share.h" |
| 34 #include "net/base/network_change_notifier.h" | 34 #include "net/base/network_change_notifier.h" |
| 35 | 35 |
| 36 class GURL; | |
| 37 | |
| 38 namespace syncer { | 36 namespace syncer { |
| 39 | 37 |
| 40 class ModelTypeRegistry; | 38 class ModelTypeRegistry; |
| 41 class SyncCycleContext; | 39 class SyncCycleContext; |
| 42 class TypeDebugInfoObserver; | 40 class TypeDebugInfoObserver; |
| 43 class WriteNode; | |
| 44 class WriteTransaction; | |
| 45 | 41 |
| 46 // SyncManager encapsulates syncable::Directory and serves as the parent of all | 42 // SyncManager encapsulates syncable::Directory and serves as the parent of all |
| 47 // other objects in the sync API. If multiple threads interact with the same | 43 // other objects in the sync API. If multiple threads interact with the same |
| 48 // local sync repository (i.e. the same sqlite database), they should share a | 44 // local sync repository (i.e. the same sqlite database), they should share a |
| 49 // single SyncManager instance. The caller should typically create one | 45 // single SyncManager instance. The caller should typically create one |
| 50 // SyncManager for the lifetime of a user session. | 46 // SyncManager for the lifetime of a user session. |
| 51 // | 47 // |
| 52 // Unless stated otherwise, all methods of SyncManager should be called on the | 48 // Unless stated otherwise, all methods of SyncManager should be called on the |
| 53 // same thread. | 49 // same thread. |
| 54 class SyncManagerImpl | 50 class SyncManagerImpl |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 331 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 336 | 332 |
| 337 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 333 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 338 | 334 |
| 339 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 335 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 340 }; | 336 }; |
| 341 | 337 |
| 342 } // namespace syncer | 338 } // namespace syncer |
| 343 | 339 |
| 344 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ | 340 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
| OLD | NEW |