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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 const std::string& access_token, | 614 const std::string& access_token, |
615 const base::Time& expiration_time) OVERRIDE; | 615 const base::Time& expiration_time) OVERRIDE; |
616 virtual void OnGetTokenFailure( | 616 virtual void OnGetTokenFailure( |
617 const OAuth2TokenService::Request* request, | 617 const OAuth2TokenService::Request* request, |
618 const GoogleServiceAuthError& error) OVERRIDE; | 618 const GoogleServiceAuthError& error) OVERRIDE; |
619 | 619 |
620 // OAuth2TokenService::Observer implementation. | 620 // OAuth2TokenService::Observer implementation. |
621 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 621 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; |
622 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; | 622 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; |
623 virtual void OnRefreshTokensLoaded() OVERRIDE; | 623 virtual void OnRefreshTokensLoaded() OVERRIDE; |
624 virtual void OnRefreshTokensCleared() OVERRIDE; | |
625 | 624 |
626 // BrowserContextKeyedService implementation. This must be called exactly | 625 // BrowserContextKeyedService implementation. This must be called exactly |
627 // once (before this object is destroyed). | 626 // once (before this object is destroyed). |
628 virtual void Shutdown() OVERRIDE; | 627 virtual void Shutdown() OVERRIDE; |
629 | 628 |
630 // Called when a datatype (SyncableService) has a need for sync to start | 629 // Called when a datatype (SyncableService) has a need for sync to start |
631 // ASAP, presumably because a local change event has occurred but we're | 630 // ASAP, presumably because a local change event has occurred but we're |
632 // still in deferred start mode, meaning the SyncableService hasn't been | 631 // still in deferred start mode, meaning the SyncableService hasn't been |
633 // told to MergeDataAndStartSyncing yet. | 632 // told to MergeDataAndStartSyncing yet. |
634 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); | 633 void OnDataTypeRequestsSyncStartup(syncer::ModelType type); |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 net::BackoffEntry request_access_token_backoff_; | 953 net::BackoffEntry request_access_token_backoff_; |
955 | 954 |
956 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 955 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
957 }; | 956 }; |
958 | 957 |
959 bool ShouldShowActionOnUI( | 958 bool ShouldShowActionOnUI( |
960 const syncer::SyncProtocolError& error); | 959 const syncer::SyncProtocolError& error); |
961 | 960 |
962 | 961 |
963 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 962 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |