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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 Profile* profile_; | 980 Profile* profile_; |
981 | 981 |
982 // The class that handles getting, setting, and persisting sync | 982 // The class that handles getting, setting, and persisting sync |
983 // preferences. | 983 // preferences. |
984 sync_driver::SyncPrefs sync_prefs_; | 984 sync_driver::SyncPrefs sync_prefs_; |
985 | 985 |
986 // TODO(ncarter): Put this in a profile, once there is UI for it. | 986 // TODO(ncarter): Put this in a profile, once there is UI for it. |
987 // This specifies where to find the sync server. | 987 // This specifies where to find the sync server. |
988 const GURL sync_service_url_; | 988 const GURL sync_service_url_; |
989 | 989 |
990 // The last time we detected a successful transition from SYNCING state. | |
991 // Our backend notifies us whenever we should take a new snapshot. | |
992 base::Time last_synced_time_; | |
993 | |
994 // The time that OnConfigureStart is called. This member is zero if | 990 // The time that OnConfigureStart is called. This member is zero if |
995 // OnConfigureStart has not yet been called, and is reset to zero once | 991 // OnConfigureStart has not yet been called, and is reset to zero once |
996 // OnConfigureDone is called. | 992 // OnConfigureDone is called. |
997 base::Time sync_configure_start_time_; | 993 base::Time sync_configure_start_time_; |
998 | 994 |
999 // Indicates if this is the first time sync is being configured. This value | 995 // Indicates if this is the first time sync is being configured. This value |
1000 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). | 996 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). |
1001 bool is_first_time_sync_configure_; | 997 bool is_first_time_sync_configure_; |
1002 | 998 |
1003 // List of available data type controllers for directory types. | 999 // List of available data type controllers for directory types. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1157 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
1162 | 1158 |
1163 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1159 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1164 }; | 1160 }; |
1165 | 1161 |
1166 bool ShouldShowActionOnUI( | 1162 bool ShouldShowActionOnUI( |
1167 const syncer::SyncProtocolError& error); | 1163 const syncer::SyncProtocolError& error); |
1168 | 1164 |
1169 | 1165 |
1170 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1166 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |