| 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_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // |invalidator| is owned and used to listen for invalidations. | 294 // |invalidator| is owned and used to listen for invalidations. |
| 295 // |restored_key_for_bootstrapping| is the key used to boostrap the | 295 // |restored_key_for_bootstrapping| is the key used to boostrap the |
| 296 // cryptographer | 296 // cryptographer |
| 297 // |keystore_encryption_enabled| determines whether we enable the keystore | 297 // |keystore_encryption_enabled| determines whether we enable the keystore |
| 298 // encryption functionality in the cryptographer/nigori. | 298 // encryption functionality in the cryptographer/nigori. |
| 299 // |report_unrecoverable_error_function| may be NULL. | 299 // |report_unrecoverable_error_function| may be NULL. |
| 300 // | 300 // |
| 301 // TODO(akalin): Replace the |post_factory| parameter with a | 301 // TODO(akalin): Replace the |post_factory| parameter with a |
| 302 // URLFetcher parameter. | 302 // URLFetcher parameter. |
| 303 virtual void Init( | 303 virtual void Init( |
| 304 const FilePath& database_location, | 304 const base::FilePath& database_location, |
| 305 const WeakHandle<JsEventHandler>& event_handler, | 305 const WeakHandle<JsEventHandler>& event_handler, |
| 306 const std::string& sync_server_and_path, | 306 const std::string& sync_server_and_path, |
| 307 int sync_server_port, | 307 int sync_server_port, |
| 308 bool use_ssl, | 308 bool use_ssl, |
| 309 scoped_ptr<HttpPostProviderFactory> post_factory, | 309 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 310 const std::vector<ModelSafeWorker*>& workers, | 310 const std::vector<ModelSafeWorker*>& workers, |
| 311 ExtensionsActivityMonitor* extensions_activity_monitor, | 311 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 312 ChangeDelegate* change_delegate, | 312 ChangeDelegate* change_delegate, |
| 313 const SyncCredentials& credentials, | 313 const SyncCredentials& credentials, |
| 314 scoped_ptr<Invalidator> invalidator, | 314 scoped_ptr<Invalidator> invalidator, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // Returns the SyncManager's encryption handler. | 427 // Returns the SyncManager's encryption handler. |
| 428 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 428 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
| 429 | 429 |
| 430 // Ask the SyncManager to fetch updates for the given types. | 430 // Ask the SyncManager to fetch updates for the given types. |
| 431 virtual void RefreshTypes(ModelTypeSet types) = 0; | 431 virtual void RefreshTypes(ModelTypeSet types) = 0; |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 } // namespace syncer | 434 } // namespace syncer |
| 435 | 435 |
| 436 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 436 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |