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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 syncable::ModelTypeSet* encrypted_types) const; | 462 syncable::ModelTypeSet* encrypted_types) const; |
463 | 463 |
464 // Returns whether processing changes is allowed. Check this before doing | 464 // Returns whether processing changes is allowed. Check this before doing |
465 // any model-modifying operations. | 465 // any model-modifying operations. |
466 bool ShouldPushChanges(); | 466 bool ShouldPushChanges(); |
467 | 467 |
468 const GURL& sync_service_url() const { return sync_service_url_; } | 468 const GURL& sync_service_url() const { return sync_service_url_; } |
469 SigninManager* signin() { return signin_.get(); } | 469 SigninManager* signin() { return signin_.get(); } |
470 const std::string& cros_user() const { return cros_user_; } | 470 const std::string& cros_user() const { return cros_user_; } |
471 | 471 |
472 // Returns any promo text the sync engine wants to display on the NTP, or an | |
akalin
2011/08/10 01:16:21
FIx comment
Andrew T Wilson (Slow)
2011/08/10 23:40:12
Done.
| |
473 // empty string if no promo is needed. | |
474 syncable::ModelTypeBitSet GetUnacknowledgedTypes() const; | |
475 | |
476 // Marks all currently registered types as "acknowledged" so we won't prompt | |
477 // the user about them any more. | |
478 void AcknowledgeSyncedTypes(); | |
479 | |
472 protected: | 480 protected: |
473 // Used by test classes that derive from ProfileSyncService. | 481 // Used by test classes that derive from ProfileSyncService. |
474 virtual browser_sync::SyncBackendHost* GetBackendForTest(); | 482 virtual browser_sync::SyncBackendHost* GetBackendForTest(); |
475 | 483 |
476 // Helper to install and configure a data type manager. | 484 // Helper to install and configure a data type manager. |
477 void ConfigureDataTypeManager(); | 485 void ConfigureDataTypeManager(); |
478 | 486 |
479 // Starts up the backend sync components. | 487 // Starts up the backend sync components. |
480 void StartUp(); | 488 void StartUp(); |
481 // Shuts down the backend sync components. | 489 // Shuts down the backend sync components. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
640 // because we haven't finished initializing). Cleared when we successfully | 648 // because we haven't finished initializing). Cleared when we successfully |
641 // post a new encrypt task to the sync backend. | 649 // post a new encrypt task to the sync backend. |
642 syncable::ModelTypeSet pending_types_for_encryption_; | 650 syncable::ModelTypeSet pending_types_for_encryption_; |
643 | 651 |
644 scoped_ptr<browser_sync::BackendMigrator> migrator_; | 652 scoped_ptr<browser_sync::BackendMigrator> migrator_; |
645 | 653 |
646 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 654 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
647 }; | 655 }; |
648 | 656 |
649 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 657 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |