| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 const std::string& access_token, | 605 const std::string& access_token, |
| 606 const base::Time& expiration_time) OVERRIDE; | 606 const base::Time& expiration_time) OVERRIDE; |
| 607 virtual void OnGetTokenFailure( | 607 virtual void OnGetTokenFailure( |
| 608 const OAuth2TokenService::Request* request, | 608 const OAuth2TokenService::Request* request, |
| 609 const GoogleServiceAuthError& error) OVERRIDE; | 609 const GoogleServiceAuthError& error) OVERRIDE; |
| 610 | 610 |
| 611 // OAuth2TokenService::Observer implementation. | 611 // OAuth2TokenService::Observer implementation. |
| 612 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 612 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; |
| 613 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; | 613 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; |
| 614 virtual void OnRefreshTokensLoaded() OVERRIDE; | 614 virtual void OnRefreshTokensLoaded() OVERRIDE; |
| 615 virtual void OnRefreshTokensCleared() OVERRIDE; | |
| 616 | 615 |
| 617 // BrowserContextKeyedService implementation. This must be called exactly | 616 // BrowserContextKeyedService implementation. This must be called exactly |
| 618 // once (before this object is destroyed). | 617 // once (before this object is destroyed). |
| 619 virtual void Shutdown() OVERRIDE; | 618 virtual void Shutdown() OVERRIDE; |
| 620 | 619 |
| 621 // Called when a datatype (SyncableService) has a need for sync to start | 620 // Called when a datatype (SyncableService) has a need for sync to start |
| 622 // ASAP, presumably because a local change event has occurred but we're | 621 // ASAP, presumably because a local change event has occurred but we're |
| 623 // still in deferred start mode, meaning the SyncableService hasn't been | 622 // still in deferred start mode, meaning the SyncableService hasn't been |
| 624 // told to MergeDataAndStartSyncing yet. | 623 // told to MergeDataAndStartSyncing yet. |
| 625 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); | 624 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 net::BackoffEntry request_access_token_backoff_; | 944 net::BackoffEntry request_access_token_backoff_; |
| 946 | 945 |
| 947 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 946 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 948 }; | 947 }; |
| 949 | 948 |
| 950 bool ShouldShowActionOnUI( | 949 bool ShouldShowActionOnUI( |
| 951 const syncer::SyncProtocolError& error); | 950 const syncer::SyncProtocolError& error); |
| 952 | 951 |
| 953 | 952 |
| 954 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 953 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |