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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 // ProfileSyncService needs to remember access token in order to invalidate it | 909 // ProfileSyncService needs to remember access token in order to invalidate it |
910 // with OAuth2TokenService. | 910 // with OAuth2TokenService. |
911 std::string access_token_; | 911 std::string access_token_; |
912 | 912 |
913 // ProfileSyncService needs to hold reference to access_token_request_ for | 913 // ProfileSyncService needs to hold reference to access_token_request_ for |
914 // the duration of request in order to receive callbacks. | 914 // the duration of request in order to receive callbacks. |
915 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 915 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
916 | 916 |
917 // If RequestAccessToken fails with transient error then retry requesting | 917 // If RequestAccessToken fails with transient error then retry requesting |
918 // access token with exponential backoff. | 918 // access token with exponential backoff. |
919 base::OneShotTimer<ProfileSyncService> request_access_token_retry_timer_; | 919 base::OneShotTimer request_access_token_retry_timer_; |
920 net::BackoffEntry request_access_token_backoff_; | 920 net::BackoffEntry request_access_token_backoff_; |
921 | 921 |
922 // States related to sync token and connection. | 922 // States related to sync token and connection. |
923 base::Time connection_status_update_time_; | 923 base::Time connection_status_update_time_; |
924 syncer::ConnectionStatus connection_status_; | 924 syncer::ConnectionStatus connection_status_; |
925 base::Time token_request_time_; | 925 base::Time token_request_time_; |
926 base::Time token_receive_time_; | 926 base::Time token_receive_time_; |
927 GoogleServiceAuthError last_get_token_error_; | 927 GoogleServiceAuthError last_get_token_error_; |
928 base::Time next_token_request_time_; | 928 base::Time next_token_request_time_; |
929 | 929 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 996 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
997 | 997 |
998 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 998 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
999 }; | 999 }; |
1000 | 1000 |
1001 bool ShouldShowActionOnUI( | 1001 bool ShouldShowActionOnUI( |
1002 const syncer::SyncProtocolError& error); | 1002 const syncer::SyncProtocolError& error); |
1003 | 1003 |
1004 | 1004 |
1005 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1005 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |