diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-30 05:15:57 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-30 05:15:57 +0000 |
commit | 4679429d477a57ab6536bf1dfe1bf9a8f34eb8b7 (patch) | |
tree | fdab690d021a796fd39394589b2636394003b23c /chrome/browser/google_apis/operation_runner.h | |
parent | 670d3263777ef1082bc1bd86d234972f646fbf50 (diff) | |
download | chromium_src-4679429d477a57ab6536bf1dfe1bf9a8f34eb8b7.zip chromium_src-4679429d477a57ab6536bf1dfe1bf9a8f34eb8b7.tar.gz chromium_src-4679429d477a57ab6536bf1dfe1bf9a8f34eb8b7.tar.bz2 |
google_apis: Move AuthOperation to auth_service.cc
AuthOperation was only used in auth_service, hence there is no need to have
this class in base_operations.h
Along the way, remove an unused function Authenticate() from OperationRunner,
and make some functions private there.
Remove AuthenticateStub from MockDriveService as well.
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11316262
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/operation_runner.h')
-rw-r--r-- | chrome/browser/google_apis/operation_runner.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/google_apis/operation_runner.h b/chrome/browser/google_apis/operation_runner.h index 45e6ea6..d0fbf1d 100644 --- a/chrome/browser/google_apis/operation_runner.h +++ b/chrome/browser/google_apis/operation_runner.h @@ -11,6 +11,7 @@ #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" +#include "chrome/browser/google_apis/auth_service.h" #include "chrome/browser/google_apis/base_operations.h" #include "chrome/browser/google_apis/gdata_errorcode.h" @@ -46,16 +47,12 @@ class OperationRunner { // Cancels all in-flight operations. void CancelAll(); - // Authenticates the user by fetching the auth token as needed. |callback| - // will be run with the error code and the auth token, on the thread this - // function is run. - void Authenticate(const AuthStatusCallback& callback); - // Starts an operation implementing the AuthenticatedOperationInterface // interface, and makes the operation retry upon authentication failures by // calling back to RetryOperation. void StartOperationWithRetry(AuthenticatedOperationInterface* operation); + private: // Starts an operation implementing the AuthenticatedOperationInterface // interface. void StartOperation(AuthenticatedOperationInterface* operation); @@ -70,7 +67,6 @@ class OperationRunner { // forces an authentication token refresh. void RetryOperation(AuthenticatedOperationInterface* operation); - private: Profile* profile_; // not owned scoped_ptr<AuthService> auth_service_; |