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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void Initialize( | 60 virtual void Initialize( |
61 SyncFrontend* frontend, | 61 SyncFrontend* frontend, |
62 std::unique_ptr<base::Thread> sync_thread, | 62 std::unique_ptr<base::Thread> sync_thread, |
63 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 63 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
64 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, | 64 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, |
65 const WeakHandle<JsEventHandler>& event_handler, | 65 const WeakHandle<JsEventHandler>& event_handler, |
66 const GURL& service_url, | 66 const GURL& service_url, |
67 const std::string& sync_user_agent, | 67 const std::string& sync_user_agent, |
68 const SyncCredentials& credentials, | 68 const SyncCredentials& credentials, |
69 bool delete_sync_data_folder, | 69 bool delete_sync_data_folder, |
| 70 bool enable_local_sync_backend, |
| 71 const base::FilePath& local_sync_backend_folder, |
70 std::unique_ptr<SyncManagerFactory> sync_manager_factory, | 72 std::unique_ptr<SyncManagerFactory> sync_manager_factory, |
71 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, | 73 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, |
72 const base::Closure& report_unrecoverable_error_function, | 74 const base::Closure& report_unrecoverable_error_function, |
73 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 75 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
74 std::unique_ptr<SyncEncryptionHandler::NigoriState> | 76 std::unique_ptr<SyncEncryptionHandler::NigoriState> |
75 saved_nigori_state) = 0; | 77 saved_nigori_state) = 0; |
76 | 78 |
77 // Called on the frontend's thread to trigger a refresh. | 79 // Called on the frontend's thread to trigger a refresh. |
78 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; | 80 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; |
79 | 81 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // See SyncManager::OnCookieJarChanged. | 215 // See SyncManager::OnCookieJarChanged. |
214 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 216 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
215 | 217 |
216 private: | 218 private: |
217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 219 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
218 }; | 220 }; |
219 | 221 |
220 } // namespace syncer | 222 } // namespace syncer |
221 | 223 |
222 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 224 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |