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_CHROMEOS_GDATA_OPERATIONS_BASE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Overridden from OAuth2AccessTokenConsumer: | 36 // Overridden from OAuth2AccessTokenConsumer: |
37 virtual void OnGetTokenSuccess(const std::string& access_token, | 37 virtual void OnGetTokenSuccess(const std::string& access_token, |
38 const base::Time& expiration_time) OVERRIDE; | 38 const base::Time& expiration_time) OVERRIDE; |
39 virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE; | 39 virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE; |
40 | 40 |
41 // Overridden from GDataOpertionRegistry::Operation | 41 // Overridden from GDataOpertionRegistry::Operation |
42 virtual void DoCancel() OVERRIDE; | 42 virtual void DoCancel() OVERRIDE; |
43 | 43 |
44 private: | 44 private: |
45 Profile* profile_; | 45 Profile* profile_; |
46 std::string token_; | 46 std::string refresh_token_; |
47 AuthStatusCallback callback_; | 47 AuthStatusCallback callback_; |
48 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; | 48 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(AuthOperation); | 50 DISALLOW_COPY_AND_ASSIGN(AuthOperation); |
51 }; | 51 }; |
52 | 52 |
53 //=========================== GDataOperationInterface ========================== | 53 //=========================== GDataOperationInterface ========================== |
54 | 54 |
55 // An interface for implementing an operation used by DocumentsService. | 55 // An interface for implementing an operation used by DocumentsService. |
56 class GDataOperationInterface { | 56 class GDataOperationInterface { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE; | 194 virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE; |
195 | 195 |
196 private: | 196 private: |
197 GetDataCallback callback_; | 197 GetDataCallback callback_; |
198 DISALLOW_COPY_AND_ASSIGN(GetDataOperation); | 198 DISALLOW_COPY_AND_ASSIGN(GetDataOperation); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace gdata | 201 } // namespace gdata |
202 | 202 |
203 #endif // CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ | 203 #endif // CHROME_BROWSER_CHROMEOS_GDATA_OPERATIONS_BASE_H_ |
OLD | NEW |