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

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

Issue 10693109: Use Drive v2 API: enable behind --enable-drive-api flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_operations.h
diff --git a/chrome/browser/chromeos/gdata/gdata_operations.h b/chrome/browser/chromeos/gdata/gdata_operations.h
index 1466ae8d9af8fd94f59f2f725b68e48d985e5a1b..e9f8234b2b23f9662565d39a3cf92ba04e405fce 100644
--- a/chrome/browser/chromeos/gdata/gdata_operations.h
+++ b/chrome/browser/chromeos/gdata/gdata_operations.h
@@ -168,8 +168,7 @@ class EntryActionOperation : public UrlFetchOperationBase {
protected:
// Overridden from UrlFetchOperationBase.
virtual GURL GetURL() const OVERRIDE;
- virtual bool ProcessURLFetchResults(const net::URLFetcher* source)
- OVERRIDE;
+ virtual bool ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE;
virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE;
const GURL& document_url() const { return document_url_; }
@@ -196,8 +195,7 @@ class GetDataOperation : public UrlFetchOperationBase {
protected:
// Overridden from UrlFetchOperationBase.
- virtual bool ProcessURLFetchResults(const net::URLFetcher* source)
- OVERRIDE;
+ virtual bool ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE;
virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE;
private:
@@ -264,7 +262,8 @@ class GetAccountMetadataOperation : public GetDataOperation {
public:
GetAccountMetadataOperation(GDataOperationRegistry* registry,
Profile* profile,
- const GetDataCallback& callback);
+ const GetDataCallback& callback,
+ bool use_drive_api);
virtual ~GetAccountMetadataOperation();
protected:
@@ -272,6 +271,9 @@ class GetAccountMetadataOperation : public GetDataOperation {
virtual GURL GetURL() const OVERRIDE;
private:
+ // True if Drive v2 API is used.
+ bool use_drive_api_;
+
DISALLOW_COPY_AND_ASSIGN(GetAccountMetadataOperation);
};

Powered by Google App Engine
This is Rietveld 408576698