| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 747 |
| 748 // Update UMA for syncing backend. | 748 // Update UMA for syncing backend. |
| 749 void UpdateBackendInitUMA(bool success); | 749 void UpdateBackendInitUMA(bool success); |
| 750 | 750 |
| 751 // Various setup following backend initialization, mostly for syncing backend. | 751 // Various setup following backend initialization, mostly for syncing backend. |
| 752 void PostBackendInitialization(); | 752 void PostBackendInitialization(); |
| 753 | 753 |
| 754 // Whether sync has been authenticated with an account ID. | 754 // Whether sync has been authenticated with an account ID. |
| 755 bool IsSignedIn() const; | 755 bool IsSignedIn() const; |
| 756 | 756 |
| 757 // The backend can only start if sync can start and has an auth token. This is |
| 758 // different fron CanSyncStart because it represents whether the backend can |
| 759 // be started at this moment, whereas CanSyncStart represents whether sync can |
| 760 // conceptually start without further user action (acquiring a token is an |
| 761 // automatic process). |
| 762 bool CanBackendStart() const; |
| 763 |
| 757 // True if a syncing backend exists. | 764 // True if a syncing backend exists. |
| 758 bool HasSyncingBackend() const; | 765 bool HasSyncingBackend() const; |
| 759 | 766 |
| 760 // Update first sync time stored in preferences | 767 // Update first sync time stored in preferences |
| 761 void UpdateFirstSyncTimePref(); | 768 void UpdateFirstSyncTimePref(); |
| 762 | 769 |
| 763 // Tell the sync server that this client has disabled sync. | 770 // Tell the sync server that this client has disabled sync. |
| 764 void RemoveClientFromServer() const; | 771 void RemoveClientFromServer() const; |
| 765 | 772 |
| 766 // Called when the system is under memory pressure. | 773 // Called when the system is under memory pressure. |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1009 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
| 1003 | 1010 |
| 1004 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1011 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1005 }; | 1012 }; |
| 1006 | 1013 |
| 1007 bool ShouldShowActionOnUI( | 1014 bool ShouldShowActionOnUI( |
| 1008 const syncer::SyncProtocolError& error); | 1015 const syncer::SyncProtocolError& error); |
| 1009 | 1016 |
| 1010 | 1017 |
| 1011 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 1018 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |