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, | |
72 std::unique_ptr<SyncManagerFactory> sync_manager_factory, | 70 std::unique_ptr<SyncManagerFactory> sync_manager_factory, |
73 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, | 71 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, |
74 const base::Closure& report_unrecoverable_error_function, | 72 const base::Closure& report_unrecoverable_error_function, |
75 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, | 73 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, |
76 std::unique_ptr<SyncEncryptionHandler::NigoriState> | 74 std::unique_ptr<SyncEncryptionHandler::NigoriState> |
77 saved_nigori_state) = 0; | 75 saved_nigori_state) = 0; |
78 | 76 |
79 // Called on the frontend's thread to trigger a refresh. | 77 // Called on the frontend's thread to trigger a refresh. |
80 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; | 78 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; |
81 | 79 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // See SyncManager::OnCookieJarChanged. | 213 // See SyncManager::OnCookieJarChanged. |
216 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 214 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
217 | 215 |
218 private: | 216 private: |
219 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
220 }; | 218 }; |
221 | 219 |
222 } // namespace syncer | 220 } // namespace syncer |
223 | 221 |
224 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ | 222 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |