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

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

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 months 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_CORE_IMPL_SYNC_MANAGER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_SYNC_MANAGER_IMPL_H_
6 #define COMPONENTS_SYNC_CORE_IMPL_SYNC_MANAGER_IMPL_H_ 6 #define COMPONENTS_SYNC_CORE_IMPL_SYNC_MANAGER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "components/sync/base/cryptographer.h" 16 #include "components/sync/base/cryptographer.h"
17 #include "components/sync/base/sync_export.h"
18 #include "components/sync/base/time.h" 17 #include "components/sync/base/time.h"
19 #include "components/sync/core/sync_manager.h" 18 #include "components/sync/core/sync_manager.h"
20 #include "components/sync/core/user_share.h" 19 #include "components/sync/core/user_share.h"
21 #include "components/sync/core_impl/change_reorder_buffer.h" 20 #include "components/sync/core_impl/change_reorder_buffer.h"
22 #include "components/sync/core_impl/debug_info_event_listener.h" 21 #include "components/sync/core_impl/debug_info_event_listener.h"
23 #include "components/sync/core_impl/js_mutation_event_observer.h" 22 #include "components/sync/core_impl/js_mutation_event_observer.h"
24 #include "components/sync/core_impl/js_sync_encryption_handler_observer.h" 23 #include "components/sync/core_impl/js_sync_encryption_handler_observer.h"
25 #include "components/sync/core_impl/js_sync_manager_observer.h" 24 #include "components/sync/core_impl/js_sync_manager_observer.h"
26 #include "components/sync/core_impl/protocol_event_buffer.h" 25 #include "components/sync/core_impl/protocol_event_buffer.h"
27 #include "components/sync/core_impl/sync_encryption_handler_impl.h" 26 #include "components/sync/core_impl/sync_encryption_handler_impl.h"
(...skipping 20 matching lines...) Expand all
48 } 47 }
49 48
50 // SyncManager encapsulates syncable::Directory and serves as the parent of all 49 // SyncManager encapsulates syncable::Directory and serves as the parent of all
51 // other objects in the sync API. If multiple threads interact with the same 50 // other objects in the sync API. If multiple threads interact with the same
52 // local sync repository (i.e. the same sqlite database), they should share a 51 // local sync repository (i.e. the same sqlite database), they should share a
53 // single SyncManager instance. The caller should typically create one 52 // single SyncManager instance. The caller should typically create one
54 // SyncManager for the lifetime of a user session. 53 // SyncManager for the lifetime of a user session.
55 // 54 //
56 // Unless stated otherwise, all methods of SyncManager should be called on the 55 // Unless stated otherwise, all methods of SyncManager should be called on the
57 // same thread. 56 // same thread.
58 class SYNC_EXPORT SyncManagerImpl 57 class SyncManagerImpl
59 : public SyncManager, 58 : public SyncManager,
60 public net::NetworkChangeNotifier::IPAddressObserver, 59 public net::NetworkChangeNotifier::IPAddressObserver,
61 public net::NetworkChangeNotifier::ConnectionTypeObserver, 60 public net::NetworkChangeNotifier::ConnectionTypeObserver,
62 public JsBackend, 61 public JsBackend,
63 public SyncEngineEventListener, 62 public SyncEngineEventListener,
64 public ServerConnectionEventListener, 63 public ServerConnectionEventListener,
65 public syncable::DirectoryChangeDelegate, 64 public syncable::DirectoryChangeDelegate,
66 public SyncEncryptionHandler::Observer, 65 public SyncEncryptionHandler::Observer,
67 public NudgeHandler { 66 public NudgeHandler {
68 public: 67 public:
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 338 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
340 339
341 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 340 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
342 341
343 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 342 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
344 }; 343 };
345 344
346 } // namespace syncer 345 } // namespace syncer
347 346
348 #endif // COMPONENTS_SYNC_CORE_IMPL_SYNC_MANAGER_IMPL_H_ 347 #endif // COMPONENTS_SYNC_CORE_IMPL_SYNC_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_encryption_handler_impl.h ('k') | components/sync/core_impl/syncapi_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698