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_ENGINE_SYNC_MANAGER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ |
6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // Path in which to create or open sync's sqlite database (aka the | 217 // Path in which to create or open sync's sqlite database (aka the |
218 // directory). | 218 // directory). |
219 base::FilePath database_location; | 219 base::FilePath database_location; |
220 | 220 |
221 // Used to propagate events to chrome://sync-internals. Optional. | 221 // Used to propagate events to chrome://sync-internals. Optional. |
222 WeakHandle<JsEventHandler> event_handler; | 222 WeakHandle<JsEventHandler> event_handler; |
223 | 223 |
224 // URL of the sync server. | 224 // URL of the sync server. |
225 GURL service_url; | 225 GURL service_url; |
226 | 226 |
| 227 // Whether the local backend provided by the LoopbackServer should be used |
| 228 // and the location of the local sync backend storage. |
| 229 bool enable_local_sync_backend; |
| 230 base::FilePath local_sync_backend_folder; |
| 231 |
227 // Used to communicate with the sync server. | 232 // Used to communicate with the sync server. |
228 std::unique_ptr<HttpPostProviderFactory> post_factory; | 233 std::unique_ptr<HttpPostProviderFactory> post_factory; |
229 | 234 |
230 std::vector<scoped_refptr<ModelSafeWorker>> workers; | 235 std::vector<scoped_refptr<ModelSafeWorker>> workers; |
231 | 236 |
232 // Must outlive SyncManager. | 237 // Must outlive SyncManager. |
233 ExtensionsActivity* extensions_activity; | 238 ExtensionsActivity* extensions_activity; |
234 | 239 |
235 // Must outlive SyncManager. | 240 // Must outlive SyncManager. |
236 ChangeDelegate* change_delegate; | 241 ChangeDelegate* change_delegate; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 | 398 |
394 // Updates Sync's tracking of whether the cookie jar has a mismatch with the | 399 // Updates Sync's tracking of whether the cookie jar has a mismatch with the |
395 // chrome account. See ClientConfigParams proto message for more info. | 400 // chrome account. See ClientConfigParams proto message for more info. |
396 // Note: this does not trigger a sync cycle. It just updates the sync context. | 401 // Note: this does not trigger a sync cycle. It just updates the sync context. |
397 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 402 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
398 }; | 403 }; |
399 | 404 |
400 } // namespace syncer | 405 } // namespace syncer |
401 | 406 |
402 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ | 407 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ |
OLD | NEW |