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

Unified Diff: chrome/browser/google_apis/base_operations.h

Issue 11316262: google_apis: Move AuthOperation to auth_service.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder headers Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google_apis/auth_service.cc ('k') | chrome/browser/google_apis/base_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/base_operations.h
diff --git a/chrome/browser/google_apis/base_operations.h b/chrome/browser/google_apis/base_operations.h
index 319a790ad6d6ec10f9b5c48fa46eb01f5514e80b..9121e415357673122020dfa2c0ddeb94ffaf5a86 100644
--- a/chrome/browser/google_apis/base_operations.h
+++ b/chrome/browser/google_apis/base_operations.h
@@ -25,40 +25,6 @@ class Value;
namespace google_apis {
-//================================ AuthOperation ===============================
-
-// Callback type for authentication related DriveServiceInterface calls.
-typedef base::Callback<void(GDataErrorCode error,
- const std::string& token)> AuthStatusCallback;
-
-// OAuth2 authorization token retrieval operation.
-class AuthOperation : public OperationRegistry::Operation,
- public OAuth2AccessTokenConsumer {
- public:
- AuthOperation(OperationRegistry* registry,
- const AuthStatusCallback& callback,
- const std::vector<std::string>& scopes,
- const std::string& refresh_token);
- virtual ~AuthOperation();
- void Start();
-
- // Overridden from OAuth2AccessTokenConsumer:
- virtual void OnGetTokenSuccess(const std::string& access_token,
- const base::Time& expiration_time) OVERRIDE;
- virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE;
-
- // Overridden from OperationRegistry::Operation
- virtual void DoCancel() OVERRIDE;
-
- private:
- std::string refresh_token_;
- AuthStatusCallback callback_;
- std::vector<std::string> scopes_;
- scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
-
- DISALLOW_COPY_AND_ASSIGN(AuthOperation);
-};
-
//======================= AuthenticatedOperationInterface ======================
// An interface for implementing an operation used by DriveServiceInterface.
« no previous file with comments | « chrome/browser/google_apis/auth_service.cc ('k') | chrome/browser/google_apis/base_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698