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

Unified Diff: chrome/browser/chromeos/gdata/operations_base.h

Issue 10831122: gdata cleanup: stop passing Profile* around GData operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/operations_base.h
diff --git a/chrome/browser/chromeos/gdata/operations_base.h b/chrome/browser/chromeos/gdata/operations_base.h
index 45fedf2407436e4d01c652b702a5d78051bc8a7b..e03eb4e8fd600df6786f4a3b2a9fc35fe2cf6f5f 100644
--- a/chrome/browser/chromeos/gdata/operations_base.h
+++ b/chrome/browser/chromeos/gdata/operations_base.h
@@ -15,7 +15,6 @@
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
-class Profile;
class OAuth2AccessTokenFetcher;
namespace gdata {
@@ -27,7 +26,6 @@ class AuthOperation : public GDataOperationRegistry::Operation,
public OAuth2AccessTokenConsumer {
public:
AuthOperation(GDataOperationRegistry* registry,
- Profile* profile,
const AuthStatusCallback& callback,
const std::string& refresh_token);
virtual ~AuthOperation();
@@ -42,7 +40,6 @@ class AuthOperation : public GDataOperationRegistry::Operation,
virtual void DoCancel() OVERRIDE;
private:
- Profile* profile_;
std::string refresh_token_;
AuthStatusCallback callback_;
scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
@@ -89,11 +86,10 @@ class UrlFetchOperationBase : public GDataOperationInterface,
const ReAuthenticateCallback& callback) OVERRIDE;
protected:
- UrlFetchOperationBase(GDataOperationRegistry* registry, Profile* profile);
+ UrlFetchOperationBase(GDataOperationRegistry* registry);
UrlFetchOperationBase(GDataOperationRegistry* registry,
GDataOperationRegistry::OperationType type,
- const FilePath& path,
- Profile* profile);
+ const FilePath& path);
virtual ~UrlFetchOperationBase();
// Gets URL for the request.
@@ -143,7 +139,6 @@ class UrlFetchOperationBase : public GDataOperationInterface,
std::string GetResponseHeadersAsString(
const net::URLFetcher* url_fetcher);
- Profile* profile_;
ReAuthenticateCallback re_authenticate_callback_;
int re_authenticate_count_;
bool save_temp_file_;
@@ -159,7 +154,6 @@ class UrlFetchOperationBase : public GDataOperationInterface,
class EntryActionOperation : public UrlFetchOperationBase {
public:
EntryActionOperation(GDataOperationRegistry* registry,
- Profile* profile,
const EntryActionCallback& callback,
const GURL& document_url);
virtual ~EntryActionOperation();
@@ -184,7 +178,6 @@ class EntryActionOperation : public UrlFetchOperationBase {
class GetDataOperation : public UrlFetchOperationBase {
public:
GetDataOperation(GDataOperationRegistry* registry,
- Profile* profile,
const GetDataCallback& callback);
virtual ~GetDataOperation();
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations_unittest.cc ('k') | chrome/browser/chromeos/gdata/operations_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698