| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // | 304 // |
| 305 // TODO(akalin): Replace the |post_factory| parameter with a | 305 // TODO(akalin): Replace the |post_factory| parameter with a |
| 306 // URLFetcher parameter. | 306 // URLFetcher parameter. |
| 307 virtual void Init( | 307 virtual void Init( |
| 308 const base::FilePath& database_location, | 308 const base::FilePath& database_location, |
| 309 const WeakHandle<JsEventHandler>& event_handler, | 309 const WeakHandle<JsEventHandler>& event_handler, |
| 310 const std::string& sync_server_and_path, | 310 const std::string& sync_server_and_path, |
| 311 int sync_server_port, | 311 int sync_server_port, |
| 312 bool use_ssl, | 312 bool use_ssl, |
| 313 scoped_ptr<HttpPostProviderFactory> post_factory, | 313 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 314 const std::vector<ModelSafeWorker*>& workers, | 314 const std::vector<scoped_refptr<ModelSafeWorker> >& workers, |
| 315 ExtensionsActivity* extensions_activity, | 315 ExtensionsActivity* extensions_activity, |
| 316 ChangeDelegate* change_delegate, | 316 ChangeDelegate* change_delegate, |
| 317 const SyncCredentials& credentials, | 317 const SyncCredentials& credentials, |
| 318 const std::string& invalidator_client_id, | 318 const std::string& invalidator_client_id, |
| 319 const std::string& restored_key_for_bootstrapping, | 319 const std::string& restored_key_for_bootstrapping, |
| 320 const std::string& restored_keystore_key_for_bootstrapping, | 320 const std::string& restored_keystore_key_for_bootstrapping, |
| 321 InternalComponentsFactory* internal_components_factory, | 321 InternalComponentsFactory* internal_components_factory, |
| 322 Encryptor* encryptor, | 322 Encryptor* encryptor, |
| 323 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 323 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
| 324 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, | 324 ReportUnrecoverableErrorFunction report_unrecoverable_error_function, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 // Returns the SyncManager's encryption handler. | 416 // Returns the SyncManager's encryption handler. |
| 417 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 417 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
| 418 | 418 |
| 419 // Ask the SyncManager to fetch updates for the given types. | 419 // Ask the SyncManager to fetch updates for the given types. |
| 420 virtual void RefreshTypes(ModelTypeSet types) = 0; | 420 virtual void RefreshTypes(ModelTypeSet types) = 0; |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 } // namespace syncer | 423 } // namespace syncer |
| 424 | 424 |
| 425 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 425 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |