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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 Profile* profile_; | 988 Profile* profile_; |
989 | 989 |
990 // The class that handles getting, setting, and persisting sync | 990 // The class that handles getting, setting, and persisting sync |
991 // preferences. | 991 // preferences. |
992 sync_driver::SyncPrefs sync_prefs_; | 992 sync_driver::SyncPrefs sync_prefs_; |
993 | 993 |
994 // TODO(ncarter): Put this in a profile, once there is UI for it. | 994 // TODO(ncarter): Put this in a profile, once there is UI for it. |
995 // This specifies where to find the sync server. | 995 // This specifies where to find the sync server. |
996 const GURL sync_service_url_; | 996 const GURL sync_service_url_; |
997 | 997 |
998 // The last time we detected a successful transition from SYNCING state. | |
999 // Our backend notifies us whenever we should take a new snapshot. | |
1000 base::Time last_synced_time_; | |
1001 | |
1002 // The time that OnConfigureStart is called. This member is zero if | 998 // The time that OnConfigureStart is called. This member is zero if |
1003 // OnConfigureStart has not yet been called, and is reset to zero once | 999 // OnConfigureStart has not yet been called, and is reset to zero once |
1004 // OnConfigureDone is called. | 1000 // OnConfigureDone is called. |
1005 base::Time sync_configure_start_time_; | 1001 base::Time sync_configure_start_time_; |
1006 | 1002 |
1007 // Indicates if this is the first time sync is being configured. This value | 1003 // Indicates if this is the first time sync is being configured. This value |
1008 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). | 1004 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). |
1009 bool is_first_time_sync_configure_; | 1005 bool is_first_time_sync_configure_; |
1010 | 1006 |
1011 // List of available data type controllers for directory types. | 1007 // List of available data type controllers for directory types. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1165 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
1170 | 1166 |
1171 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1167 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1172 }; | 1168 }; |
1173 | 1169 |
1174 bool ShouldShowActionOnUI( | 1170 bool ShouldShowActionOnUI( |
1175 const syncer::SyncProtocolError& error); | 1171 const syncer::SyncProtocolError& error); |
1176 | 1172 |
1177 | 1173 |
1178 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1174 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |