OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 // Returns true if the syncer is waiting for new datatypes to be encrypted. | 517 // Returns true if the syncer is waiting for new datatypes to be encrypted. |
518 virtual bool encryption_pending() const; | 518 virtual bool encryption_pending() const; |
519 | 519 |
520 // Returns whether processing changes is allowed. Check this before doing | 520 // Returns whether processing changes is allowed. Check this before doing |
521 // any model-modifying operations. | 521 // any model-modifying operations. |
522 bool ShouldPushChanges(); | 522 bool ShouldPushChanges(); |
523 | 523 |
524 const GURL& sync_service_url() const { return sync_service_url_; } | 524 const GURL& sync_service_url() const { return sync_service_url_; } |
525 bool auto_start_enabled() const { return auto_start_enabled_; } | 525 bool auto_start_enabled() const { return auto_start_enabled_; } |
526 SigninManager* signin() const { return signin_; } | 526 SigninManager* signin() const { return signin_; } |
| 527 bool setup_in_progress() const { return setup_in_progress_; } |
527 | 528 |
528 // Stops the sync backend and sets the flag for suppressing sync startup. | 529 // Stops the sync backend and sets the flag for suppressing sync startup. |
529 void StopAndSuppress(); | 530 void StopAndSuppress(); |
530 | 531 |
531 // Resets the flag for suppressing sync startup and starts the sync backend. | 532 // Resets the flag for suppressing sync startup and starts the sync backend. |
532 void UnsuppressAndStart(); | 533 void UnsuppressAndStart(); |
533 | 534 |
534 // Marks all currently registered types as "acknowledged" so we won't prompt | 535 // Marks all currently registered types as "acknowledged" so we won't prompt |
535 // the user about them any more. | 536 // the user about them any more. |
536 void AcknowledgeSyncedTypes(); | 537 void AcknowledgeSyncedTypes(); |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 syncer::SyncNotifierHelper notifier_helper_; | 843 syncer::SyncNotifierHelper notifier_helper_; |
843 | 844 |
844 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 845 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
845 }; | 846 }; |
846 | 847 |
847 bool ShouldShowActionOnUI( | 848 bool ShouldShowActionOnUI( |
848 const syncer::SyncProtocolError& error); | 849 const syncer::SyncProtocolError& error); |
849 | 850 |
850 | 851 |
851 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 852 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |