OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void Initialize( | 76 void Initialize( |
77 SyncFrontend* frontend, | 77 SyncFrontend* frontend, |
78 std::unique_ptr<base::Thread> sync_thread, | 78 std::unique_ptr<base::Thread> sync_thread, |
79 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 79 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
80 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 80 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, |
81 const WeakHandle<JsEventHandler>& event_handler, | 81 const WeakHandle<JsEventHandler>& event_handler, |
82 const GURL& service_url, | 82 const GURL& service_url, |
83 const std::string& sync_user_agent, | 83 const std::string& sync_user_agent, |
84 const SyncCredentials& credentials, | 84 const SyncCredentials& credentials, |
85 bool delete_sync_data_folder, | 85 bool delete_sync_data_folder, |
| 86 bool enable_local_sync_backend, |
| 87 const base::FilePath& local_sync_backend_folder, |
86 std::unique_ptr<SyncManagerFactory> sync_manager_factory, | 88 std::unique_ptr<SyncManagerFactory> sync_manager_factory, |
87 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, | 89 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, |
88 const base::Closure& report_unrecoverable_error_function, | 90 const base::Closure& report_unrecoverable_error_function, |
89 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 91 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
90 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) | 92 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) |
91 override; | 93 override; |
92 void TriggerRefresh(const ModelTypeSet& types) override; | 94 void TriggerRefresh(const ModelTypeSet& types) override; |
93 void UpdateCredentials(const SyncCredentials& credentials) override; | 95 void UpdateCredentials(const SyncCredentials& credentials) override; |
94 void StartSyncingWithServer() override; | 96 void StartSyncingWithServer() override; |
95 void SetEncryptionPassphrase(const std::string& passphrase, | 97 void SetEncryptionPassphrase(const std::string& passphrase, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 bool invalidation_handler_registered_; | 352 bool invalidation_handler_registered_; |
351 | 353 |
352 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 354 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
353 | 355 |
354 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 356 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
355 }; | 357 }; |
356 | 358 |
357 } // namespace syncer | 359 } // namespace syncer |
358 | 360 |
359 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 361 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
OLD | NEW |