Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding the AndroidPO2TS update Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698