OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 // HTTP header. Used internally when collecting stats to classify clients. | 356 // HTTP header. Used internally when collecting stats to classify clients. |
357 // |sync_notifier| is owned and used to listen for notifications. | 357 // |sync_notifier| is owned and used to listen for notifications. |
358 // |restored_key_for_bootstrapping| is the key used to boostrap the | 358 // |restored_key_for_bootstrapping| is the key used to boostrap the |
359 // cryptographer | 359 // cryptographer |
360 // |keystore_encryption_enabled| determines whether we enable the keystore | 360 // |keystore_encryption_enabled| determines whether we enable the keystore |
361 // encryption functionality in the cryptographer/nigori. | 361 // encryption functionality in the cryptographer/nigori. |
362 // |report_unrecoverable_error_function| may be NULL. | 362 // |report_unrecoverable_error_function| may be NULL. |
363 // | 363 // |
364 // TODO(akalin): Replace the |post_factory| parameter with a | 364 // TODO(akalin): Replace the |post_factory| parameter with a |
365 // URLFetcher parameter. | 365 // URLFetcher parameter. |
366 virtual bool Init( | 366 virtual void Init( |
367 const FilePath& database_location, | 367 const FilePath& database_location, |
368 const WeakHandle<JsEventHandler>& event_handler, | 368 const WeakHandle<JsEventHandler>& event_handler, |
369 const std::string& sync_server_and_path, | 369 const std::string& sync_server_and_path, |
370 int sync_server_port, | 370 int sync_server_port, |
371 bool use_ssl, | 371 bool use_ssl, |
372 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 372 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
373 scoped_ptr<HttpPostProviderFactory> post_factory, | 373 scoped_ptr<HttpPostProviderFactory> post_factory, |
374 const std::vector<ModelSafeWorker*>& workers, | 374 const std::vector<ModelSafeWorker*>& workers, |
375 ExtensionsActivityMonitor* extensions_activity_monitor, | 375 ExtensionsActivityMonitor* extensions_activity_monitor, |
376 ChangeDelegate* change_delegate, | 376 ChangeDelegate* change_delegate, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 virtual bool ReceivedExperiment(Experiments* experiments) = 0; | 522 virtual bool ReceivedExperiment(Experiments* experiments) = 0; |
523 | 523 |
524 // Uses a read-only transaction to determine if the directory being synced has | 524 // Uses a read-only transaction to determine if the directory being synced has |
525 // any remaining unsynced items. May be called on any thread. | 525 // any remaining unsynced items. May be called on any thread. |
526 virtual bool HasUnsyncedItems() = 0; | 526 virtual bool HasUnsyncedItems() = 0; |
527 }; | 527 }; |
528 | 528 |
529 } // namespace syncer | 529 } // namespace syncer |
530 | 530 |
531 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 531 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |