| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 virtual void OnClearServerDataSucceeded(); | 261 virtual void OnClearServerDataSucceeded(); |
| 262 | 262 |
| 263 struct DoInitializeOptions { | 263 struct DoInitializeOptions { |
| 264 DoInitializeOptions( | 264 DoInitializeOptions( |
| 265 const GURL& service_url, | 265 const GURL& service_url, |
| 266 sync_api::HttpPostProviderFactory* http_bridge_factory, | 266 sync_api::HttpPostProviderFactory* http_bridge_factory, |
| 267 const sync_api::SyncCredentials& credentials, | 267 const sync_api::SyncCredentials& credentials, |
| 268 bool delete_sync_data_folder, | 268 bool delete_sync_data_folder, |
| 269 const notifier::NotifierOptions& notifier_options, | 269 const notifier::NotifierOptions& notifier_options, |
| 270 std::string restored_key_for_bootstrapping, | 270 std::string restored_key_for_bootstrapping, |
| 271 bool setup_for_test_mode) | 271 bool setup_for_test_mode); |
| 272 : service_url(service_url), | 272 ~DoInitializeOptions(); |
| 273 http_bridge_factory(http_bridge_factory), | |
| 274 credentials(credentials), | |
| 275 delete_sync_data_folder(delete_sync_data_folder), | |
| 276 notifier_options(notifier_options), | |
| 277 restored_key_for_bootstrapping(restored_key_for_bootstrapping), | |
| 278 setup_for_test_mode(setup_for_test_mode) {} | |
| 279 | 273 |
| 280 GURL service_url; | 274 GURL service_url; |
| 281 sync_api::HttpPostProviderFactory* http_bridge_factory; | 275 sync_api::HttpPostProviderFactory* http_bridge_factory; |
| 282 sync_api::SyncCredentials credentials; | 276 sync_api::SyncCredentials credentials; |
| 283 std::string lsid; | 277 std::string lsid; |
| 284 bool delete_sync_data_folder; | 278 bool delete_sync_data_folder; |
| 285 notifier::NotifierOptions notifier_options; | 279 notifier::NotifierOptions notifier_options; |
| 286 std::string restored_key_for_bootstrapping; | 280 std::string restored_key_for_bootstrapping; |
| 287 bool setup_for_test_mode; | 281 bool setup_for_test_mode; |
| 288 }; | 282 }; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 528 |
| 535 // Whether we've processed the initialization complete callback. | 529 // Whether we've processed the initialization complete callback. |
| 536 bool syncapi_initialized_; | 530 bool syncapi_initialized_; |
| 537 | 531 |
| 538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 532 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 539 }; | 533 }; |
| 540 | 534 |
| 541 } // namespace browser_sync | 535 } // namespace browser_sync |
| 542 | 536 |
| 543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 537 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |