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

Side by Side Diff: components/signin/core/browser/profile_oauth2_token_service.h

Issue 299943003: Refactor ProfileOAuth2TokenServiceRequest into OAuth2TokenServiceRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove useless return value from Invalidate. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 15 matching lines...) Expand all
26 // 26 //
27 // See |OAuth2TokenService| for usage details. 27 // See |OAuth2TokenService| for usage details.
28 // 28 //
29 // Note: after StartRequest returns, in-flight requests will continue 29 // Note: after StartRequest returns, in-flight requests will continue
30 // even if the TokenService refresh token that was used to initiate 30 // even if the TokenService refresh token that was used to initiate
31 // the request changes or is cleared. When the request completes, 31 // the request changes or is cleared. When the request completes,
32 // Consumer::OnGetTokenSuccess will be invoked, but the access token 32 // Consumer::OnGetTokenSuccess will be invoked, but the access token
33 // won't be cached. 33 // won't be cached.
34 // 34 //
35 // Note: requests should be started from the UI thread. To start a 35 // Note: requests should be started from the UI thread. To start a
36 // request from other thread, please use ProfileOAuth2TokenServiceRequest. 36 // request from other thread, please use OAuth2TokenServiceRequest.
37 class ProfileOAuth2TokenService : public OAuth2TokenService, 37 class ProfileOAuth2TokenService : public OAuth2TokenService,
38 public KeyedService { 38 public KeyedService {
39 public: 39 public:
40 virtual ~ProfileOAuth2TokenService(); 40 virtual ~ProfileOAuth2TokenService();
41 41
42 // Initializes this token service with the SigninClient. 42 // Initializes this token service with the SigninClient.
43 virtual void Initialize(SigninClient* client); 43 virtual void Initialize(SigninClient* client);
44 44
45 // KeyedService implementation. 45 // KeyedService implementation.
46 virtual void Shutdown() OVERRIDE; 46 virtual void Shutdown() OVERRIDE;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // The client with which this instance was initialized, or NULL. 97 // The client with which this instance was initialized, or NULL.
98 SigninClient* client_; 98 SigninClient* client_;
99 99
100 // Used to expose auth errors to the UI. 100 // Used to expose auth errors to the UI.
101 scoped_ptr<SigninErrorController> signin_error_controller_; 101 scoped_ptr<SigninErrorController> signin_error_controller_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService); 103 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenService);
104 }; 104 };
105 105
106 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 106 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698