OLD | NEW |
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 GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
6 #define GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // |scopes| must not be empty. | 83 // |scopes| must not be empty. |
84 static void InvalidateToken( | 84 static void InvalidateToken( |
85 const scoped_refptr<TokenServiceProvider>& provider, | 85 const scoped_refptr<TokenServiceProvider>& provider, |
86 const std::string& account_id, | 86 const std::string& account_id, |
87 const OAuth2TokenService::ScopeSet& scopes, | 87 const OAuth2TokenService::ScopeSet& scopes, |
88 const std::string& access_token); | 88 const std::string& access_token); |
89 | 89 |
90 virtual ~OAuth2TokenServiceRequest(); | 90 virtual ~OAuth2TokenServiceRequest(); |
91 | 91 |
92 // OAuth2TokenService::Request. | 92 // OAuth2TokenService::Request. |
93 virtual std::string GetAccountId() const OVERRIDE; | 93 virtual std::string GetAccountId() const override; |
94 | 94 |
95 private: | 95 private: |
96 OAuth2TokenServiceRequest(const std::string& account_id); | 96 OAuth2TokenServiceRequest(const std::string& account_id); |
97 | 97 |
98 void StartWithCore(const scoped_refptr<Core>& core); | 98 void StartWithCore(const scoped_refptr<Core>& core); |
99 | 99 |
100 const std::string account_id_; | 100 const std::string account_id_; |
101 scoped_refptr<Core> core_; | 101 scoped_refptr<Core> core_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceRequest); | 103 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenServiceRequest); |
104 }; | 104 }; |
105 | 105 |
106 #endif // GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ | 106 #endif // GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_REQUEST_H_ |
OLD | NEW |