Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 std::string lsid; | 319 std::string lsid; |
| 320 bool delete_sync_data_folder; | 320 bool delete_sync_data_folder; |
| 321 std::string restored_key_for_bootstrapping; | 321 std::string restored_key_for_bootstrapping; |
| 322 bool setup_for_test_mode; | 322 bool setup_for_test_mode; |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 // Called on |frontend_loop_|. | 325 // Called on |frontend_loop_|. |
| 326 void CreateSyncNotifier(const scoped_refptr<net::URLRequestContextGetter>& | 326 void CreateSyncNotifier(const scoped_refptr<net::URLRequestContextGetter>& |
| 327 request_context_getter); | 327 request_context_getter); |
| 328 | 328 |
| 329 void StartConfigurationMode(); | |
|
tim (not reviewing)
2011/04/15 00:21:43
move down to below the Note about Do* methods and
lipalani1
2011/04/15 01:24:39
Oh I misunderstood the DO* convention. I thought t
| |
| 330 | |
| 329 | 331 |
| 330 // Note: | 332 // Note: |
| 331 // | 333 // |
| 332 // The Do* methods are the various entry points from our SyncBackendHost. | 334 // The Do* methods are the various entry points from our SyncBackendHost. |
| 333 // It calls us on a dedicated thread to actually perform synchronous | 335 // It calls us on a dedicated thread to actually perform synchronous |
| 334 // (and potentially blocking) syncapi operations. | 336 // (and potentially blocking) syncapi operations. |
| 335 // | 337 // |
| 336 // Called on the SyncBackendHost core_thread_ to perform initialization | 338 // Called on the SyncBackendHost core_thread_ to perform initialization |
| 337 // of the syncapi on behalf of SyncBackendHost::Initialize. | 339 // of the syncapi on behalf of SyncBackendHost::Initialize. |
| 338 void DoInitialize(const DoInitializeOptions& options); | 340 void DoInitialize(const DoInitializeOptions& options); |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 661 | 663 |
| 662 // Whether we've processed the initialization complete callback. | 664 // Whether we've processed the initialization complete callback. |
| 663 bool syncapi_initialized_; | 665 bool syncapi_initialized_; |
| 664 | 666 |
| 665 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 667 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 666 }; | 668 }; |
| 667 | 669 |
| 668 } // namespace browser_sync | 670 } // namespace browser_sync |
| 669 | 671 |
| 670 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 672 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |