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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 ClearServerDataState clear_server_data_state_; | 624 ClearServerDataState clear_server_data_state_; |
625 | 625 |
626 // Timeout for the clear data command. This timeout is a temporary hack | 626 // Timeout for the clear data command. This timeout is a temporary hack |
627 // and is necessary because the nudge sync framework can drop nudges for | 627 // and is necessary because the nudge sync framework can drop nudges for |
628 // a wide variety of sync-related conditions (throttling, connections issues, | 628 // a wide variety of sync-related conditions (throttling, connections issues, |
629 // syncer paused, etc.). It can only be removed correctly when the framework | 629 // syncer paused, etc.). It can only be removed correctly when the framework |
630 // is reworked to allow one-shot commands like clearing server data. | 630 // is reworked to allow one-shot commands like clearing server data. |
631 base::OneShotTimer<ProfileSyncService> clear_server_data_timer_; | 631 base::OneShotTimer<ProfileSyncService> clear_server_data_timer_; |
632 | 632 |
633 // The most recently requested set of types to encrypt. Set by the user, | 633 // The most recently requested set of types to encrypt. Set by the user, |
634 // and cached if the syncer was unable to encrypt new types (for example | 634 // and cached until the syncer either finishes encryption |
635 // because we haven't finished initializing). Cleared when we successfully | 635 // (OnEncryptionComplete) or the user cancels. |
636 // post a new encrypt task to the sync backend. | |
637 syncable::ModelTypeSet pending_types_for_encryption_; | 636 syncable::ModelTypeSet pending_types_for_encryption_; |
638 | 637 |
639 scoped_ptr<browser_sync::BackendMigrator> migrator_; | 638 scoped_ptr<browser_sync::BackendMigrator> migrator_; |
640 | 639 |
641 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 640 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
642 }; | 641 }; |
643 | 642 |
644 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 643 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |