Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: components/sync/engine_impl/sync_manager_impl.h

Issue 2473613003: [Sync] Adds a new switch for enabling the new local server backend. (Closed)
Patch Set: Ifdef protect the variable. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
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; 36 class GURL;
37 37
38 namespace syncer { 38 namespace syncer {
39 39
40 class ModelTypeRegistry; 40 class ModelTypeRegistry;
41 class SyncServerConnectionManager;
42 class SyncCycleContext; 41 class SyncCycleContext;
43 class TypeDebugInfoObserver; 42 class TypeDebugInfoObserver;
44 class WriteNode; 43 class WriteNode;
45 class WriteTransaction; 44 class WriteTransaction;
46 45
47 // SyncManager encapsulates syncable::Directory and serves as the parent of all 46 // SyncManager encapsulates syncable::Directory and serves as the parent of all
48 // other objects in the sync API. If multiple threads interact with the same 47 // other objects in the sync API. If multiple threads interact with the same
49 // local sync repository (i.e. the same sqlite database), they should share a 48 // local sync repository (i.e. the same sqlite database), they should share a
50 // single SyncManager instance. The caller should typically create one 49 // single SyncManager instance. The caller should typically create one
51 // SyncManager for the lifetime of a user session. 50 // SyncManager for the lifetime of a user session.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 UserShare share_; 270 UserShare share_;
272 271
273 // This can be called from any thread, but only between calls to 272 // This can be called from any thread, but only between calls to
274 // OpenDirectory() and ShutdownOnSyncThread(). 273 // OpenDirectory() and ShutdownOnSyncThread().
275 WeakHandle<SyncManager::ChangeObserver> change_observer_; 274 WeakHandle<SyncManager::ChangeObserver> change_observer_;
276 275
277 base::ObserverList<SyncManager::Observer> observers_; 276 base::ObserverList<SyncManager::Observer> observers_;
278 277
279 // The ServerConnectionManager used to abstract communication between the 278 // The ServerConnectionManager used to abstract communication between the
280 // client (the Syncer) and the sync server. 279 // client (the Syncer) and the sync server.
281 std::unique_ptr<SyncServerConnectionManager> connection_manager_; 280 std::unique_ptr<ServerConnectionManager> connection_manager_;
282 281
283 // Maintains state that affects the way we interact with different sync types. 282 // Maintains state that affects the way we interact with different sync types.
284 // This state changes when entering or exiting a configuration cycle. 283 // This state changes when entering or exiting a configuration cycle.
285 std::unique_ptr<ModelTypeRegistry> model_type_registry_; 284 std::unique_ptr<ModelTypeRegistry> model_type_registry_;
286 285
287 // A container of various bits of information used by the SyncScheduler to 286 // A container of various bits of information used by the SyncScheduler to
288 // create SyncCycles. Must outlive the SyncScheduler. 287 // create SyncCycles. Must outlive the SyncScheduler.
289 std::unique_ptr<SyncCycleContext> cycle_context_; 288 std::unique_ptr<SyncCycleContext> cycle_context_;
290 289
291 // The scheduler that runs the Syncer. Needs to be explicitly 290 // The scheduler that runs the Syncer. Needs to be explicitly
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 333 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
335 334
336 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 335 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
337 336
338 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 337 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
339 }; 338 };
340 339
341 } // namespace syncer 340 } // namespace syncer
342 341
343 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 342 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/loopback_server/loopback_server.cc ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698