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

Unified Diff: chrome/browser/google_apis/operation_runner.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/mock_drive_service.cc ('k') | chrome/browser/google_apis/operation_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/operation_runner.h
diff --git a/chrome/browser/google_apis/operation_runner.h b/chrome/browser/google_apis/operation_runner.h
index 45e6ea61b8995d08e4e1fb69a0ec419343062a2d..d0fbf1dbf3f6144e55461be87978566cb1ea16bb 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_;
« no previous file with comments | « chrome/browser/google_apis/mock_drive_service.cc ('k') | chrome/browser/google_apis/operation_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698