| 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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 public ServerConnectionEventListener, | 61 public ServerConnectionEventListener, |
| 62 public syncable::DirectoryChangeDelegate, | 62 public syncable::DirectoryChangeDelegate, |
| 63 public SyncEncryptionHandler::Observer, | 63 public SyncEncryptionHandler::Observer, |
| 64 public NudgeHandler { | 64 public NudgeHandler { |
| 65 public: | 65 public: |
| 66 // Create an uninitialized SyncManager. Callers must Init() before using. | 66 // Create an uninitialized SyncManager. Callers must Init() before using. |
| 67 explicit SyncManagerImpl(const std::string& name); | 67 explicit SyncManagerImpl(const std::string& name); |
| 68 virtual ~SyncManagerImpl(); | 68 virtual ~SyncManagerImpl(); |
| 69 | 69 |
| 70 // SyncManager implementation. | 70 // SyncManager implementation. |
| 71 virtual void Init( | 71 virtual void Init(InitArgs* args) OVERRIDE; |
| 72 const base::FilePath& database_location, | |
| 73 const WeakHandle<JsEventHandler>& event_handler, | |
| 74 const GURL& service_url, | |
| 75 scoped_ptr<HttpPostProviderFactory> post_factory, | |
| 76 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, | |
| 77 ExtensionsActivity* extensions_activity, | |
| 78 SyncManager::ChangeDelegate* change_delegate, | |
| 79 const SyncCredentials& credentials, | |
| 80 const std::string& invalidator_client_id, | |
| 81 const std::string& restored_key_for_bootstrapping, | |
| 82 const std::string& restored_keystore_key_for_bootstrapping, | |
| 83 InternalComponentsFactory* internal_components_factory, | |
| 84 Encryptor* encryptor, | |
| 85 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | |
| 86 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | |
| 87 CancelationSignal* cancelation_signal) OVERRIDE; | |
| 88 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; | 72 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; |
| 89 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 73 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 90 ModelTypeSet types) OVERRIDE; | 74 ModelTypeSet types) OVERRIDE; |
| 91 virtual bool PurgePartiallySyncedTypes() OVERRIDE; | 75 virtual bool PurgePartiallySyncedTypes() OVERRIDE; |
| 92 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; | 76 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; |
| 93 virtual void StartSyncingNormally( | 77 virtual void StartSyncingNormally( |
| 94 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 78 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 95 virtual void ConfigureSyncer( | 79 virtual void ConfigureSyncer( |
| 96 ConfigureReason reason, | 80 ConfigureReason reason, |
| 97 ModelTypeSet to_download, | 81 ModelTypeSet to_download, |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 365 | 349 |
| 366 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 367 | 351 |
| 368 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 369 }; | 353 }; |
| 370 | 354 |
| 371 } // namespace syncer | 355 } // namespace syncer |
| 372 | 356 |
| 373 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |