| 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 // ProfileSyncService needs to remember access token in order to invalidate it | 918 // ProfileSyncService needs to remember access token in order to invalidate it |
| 919 // with OAuth2TokenService. | 919 // with OAuth2TokenService. |
| 920 std::string access_token_; | 920 std::string access_token_; |
| 921 | 921 |
| 922 // ProfileSyncService needs to hold reference to access_token_request_ for | 922 // ProfileSyncService needs to hold reference to access_token_request_ for |
| 923 // the duration of request in order to receive callbacks. | 923 // the duration of request in order to receive callbacks. |
| 924 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 924 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
| 925 | 925 |
| 926 // If RequestAccessToken fails with transient error then retry requesting | 926 // If RequestAccessToken fails with transient error then retry requesting |
| 927 // access token with exponential backoff. | 927 // access token with exponential backoff. |
| 928 base::OneShotTimer<ProfileSyncService> request_access_token_retry_timer_; | 928 base::OneShotTimer request_access_token_retry_timer_; |
| 929 net::BackoffEntry request_access_token_backoff_; | 929 net::BackoffEntry request_access_token_backoff_; |
| 930 | 930 |
| 931 // States related to sync token and connection. | 931 // States related to sync token and connection. |
| 932 base::Time connection_status_update_time_; | 932 base::Time connection_status_update_time_; |
| 933 syncer::ConnectionStatus connection_status_; | 933 syncer::ConnectionStatus connection_status_; |
| 934 base::Time token_request_time_; | 934 base::Time token_request_time_; |
| 935 base::Time token_receive_time_; | 935 base::Time token_receive_time_; |
| 936 GoogleServiceAuthError last_get_token_error_; | 936 GoogleServiceAuthError last_get_token_error_; |
| 937 base::Time next_token_request_time_; | 937 base::Time next_token_request_time_; |
| 938 | 938 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1006 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
| 1007 | 1007 |
| 1008 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1008 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1009 }; | 1009 }; |
| 1010 | 1010 |
| 1011 bool ShouldShowActionOnUI( | 1011 bool ShouldShowActionOnUI( |
| 1012 const syncer::SyncProtocolError& error); | 1012 const syncer::SyncProtocolError& error); |
| 1013 | 1013 |
| 1014 | 1014 |
| 1015 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1015 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |