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

Side by Side Diff: chrome/browser/signin/mutable_profile_oauth2_token_service.h

Issue 148513010: Eliminate ProfileOAuth2TokenService being a BCKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
7 7
8 #include "chrome/browser/signin/profile_oauth2_token_service.h" 8 #include "chrome/browser/signin/profile_oauth2_token_service.h"
9 #include "components/webdata/common/web_data_service_base.h" 9 #include "components/webdata/common/web_data_service_base.h"
10 #include "components/webdata/common/web_data_service_consumer.h" 10 #include "components/webdata/common/web_data_service_consumer.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 std::string refresh_token_; 53 std::string refresh_token_;
54 GoogleServiceAuthError last_auth_error_; 54 GoogleServiceAuthError last_auth_error_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(AccountInfo); 56 DISALLOW_COPY_AND_ASSIGN(AccountInfo);
57 }; 57 };
58 58
59 // Maps the |account_id| of accounts known to ProfileOAuth2TokenService 59 // Maps the |account_id| of accounts known to ProfileOAuth2TokenService
60 // to information about the account. 60 // to information about the account.
61 typedef std::map<std::string, linked_ptr<AccountInfo> > AccountInfoMap; 61 typedef std::map<std::string, linked_ptr<AccountInfo> > AccountInfoMap;
62 62
63 friend class ProfileOAuth2TokenServiceFactory; 63 friend class ProfileOAuth2TokenServiceWrapperImpl;
64 64
65 MutableProfileOAuth2TokenService(); 65 MutableProfileOAuth2TokenService();
66 virtual ~MutableProfileOAuth2TokenService(); 66 virtual ~MutableProfileOAuth2TokenService();
67 67
68 // OAuth2TokenService implementation. 68 // OAuth2TokenService implementation.
69 virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE; 69 virtual std::string GetRefreshToken(const std::string& account_id) OVERRIDE;
70 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 70 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
71 71
72 AccountInfoMap& refresh_tokens() { return refresh_tokens_; } 72 AccountInfoMap& refresh_tokens() { return refresh_tokens_; }
73 73
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 WebDataServiceBase::Handle web_data_service_request_; 116 WebDataServiceBase::Handle web_data_service_request_;
117 117
118 // The primary account id of this service's profile during the loading of 118 // The primary account id of this service's profile during the loading of
119 // credentials. This member is empty otherwise. 119 // credentials. This member is empty otherwise.
120 std::string loading_primary_account_id_; 120 std::string loading_primary_account_id_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenService); 122 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenService);
123 }; 123 };
124 124
125 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 125 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698