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

Side by Side Diff: chrome/browser/chromeos/gdata/operations_base.h

Issue 10827018: gdata: Rename functions in GDataAuthService per OAuth2 terminology (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 5 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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/mock_gdata_documents_service.h ('k') | chrome/browser/chromeos/gdata/operations_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698