| 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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 NOT_SIGNED_IN, // There is no signed in user. | 659 NOT_SIGNED_IN, // There is no signed in user. |
| 660 NOT_REQUESTED, // The user turned off sync. | 660 NOT_REQUESTED, // The user turned off sync. |
| 661 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed | 661 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed |
| 662 // is false. Might indicate a stop-and-clear. | 662 // is false. Might indicate a stop-and-clear. |
| 663 NEEDS_CONFIRMATION, // The user must confirm sync settings. | 663 NEEDS_CONFIRMATION, // The user must confirm sync settings. |
| 664 IS_MANAGED, // Sync is disallowed by enterprise policy. | 664 IS_MANAGED, // Sync is disallowed by enterprise policy. |
| 665 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. | 665 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. |
| 666 SYNC_INITIAL_STATE_LIMIT | 666 SYNC_INITIAL_STATE_LIMIT |
| 667 }; | 667 }; |
| 668 | 668 |
| 669 friend class PermissionUmaUtilTest; |
| 669 friend class ProfileSyncServicePasswordTest; | 670 friend class ProfileSyncServicePasswordTest; |
| 670 friend class SyncTest; | 671 friend class SyncTest; |
| 671 friend class TestProfileSyncService; | 672 friend class TestProfileSyncService; |
| 672 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); | 673 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); |
| 673 | 674 |
| 674 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use | 675 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use |
| 675 // RequestStop for that. |data_fate| controls whether the local sync data is | 676 // RequestStop for that. |data_fate| controls whether the local sync data is |
| 676 // deleted or kept when the engine shuts down. | 677 // deleted or kept when the engine shuts down. |
| 677 void StopImpl(SyncStopDataFate data_fate); | 678 void StopImpl(SyncStopDataFate data_fate); |
| 678 | 679 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1016 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
| 1016 | 1017 |
| 1017 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1018 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1018 }; | 1019 }; |
| 1019 | 1020 |
| 1020 bool ShouldShowActionOnUI( | 1021 bool ShouldShowActionOnUI( |
| 1021 const syncer::SyncProtocolError& error); | 1022 const syncer::SyncProtocolError& error); |
| 1022 | 1023 |
| 1023 | 1024 |
| 1024 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 1025 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |