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

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

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (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/gdata_wapi_feed_loader.h
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h b/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h
index 3ae0ae271d579b69aa3254fa0f6610669330d5a3..cedf1745634548cbaab65d7c30e5fe7e67d0b7fc 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h
@@ -11,8 +11,8 @@
#include "base/callback.h"
#include "base/file_path.h"
#include "base/observer_list.h"
+#include "chrome/browser/chromeos/gdata/drive_errorcode.h"
#include "chrome/browser/chromeos/gdata/drive_resource_metadata.h"
-#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "googleurl/src/gurl.h"
namespace base {
@@ -60,7 +60,7 @@ struct LoadRootFeedParams {
bool should_load_from_server;
std::string proto;
- GDataFileError load_error;
+ DriveFileError load_error;
base::Time last_modified;
// Time when filesystem began to be loaded from disk.
base::Time load_start_time;
@@ -69,7 +69,7 @@ struct LoadRootFeedParams {
// Callback run as a response to LoadFromServer.
typedef base::Callback<void(GetDocumentsParams* params,
- GDataFileError error)>
+ DriveFileError error)>
LoadDocumentFeedCallback;
// GDataWapiFeedLoader is used to load feeds from WAPI (codename for
@@ -152,7 +152,7 @@ class GDataWapiFeedLoader {
//
// See comments at GDataWapiFeedProcessor::ApplyFeeds() for
// |start_changestamp| and |root_feed_changestamp|.
- GDataFileError UpdateFromFeed(
+ DriveFileError UpdateFromFeed(
const std::vector<DocumentFeed*>& feed_list,
int64 start_changestamp,
int64 root_feed_changestamp);
@@ -169,7 +169,7 @@ class GDataWapiFeedLoader {
// Continues handling root directory refresh after the directory service
// is fully loaded.
void ContinueWithInitializedDirectoryService(LoadRootFeedParams* params,
- GDataFileError error);
+ DriveFileError error);
// Helper callback for handling results of metadata retrieval initiated from
// ReloadFeedFromServerIfNeeded(). This method makes a decision about fetching
@@ -178,7 +178,7 @@ class GDataWapiFeedLoader {
ContentOrigin initial_origin,
int64 local_changestamp,
const FileOperationCallback& callback,
- GDataErrorCode status,
+ DriveErrorCode status,
scoped_ptr<base::Value> feed_data);
// Helper callback for handling results of account data retrieval initiated
@@ -189,13 +189,13 @@ class GDataWapiFeedLoader {
ContentOrigin initial_origin,
int64 local_changestamp,
const FileOperationCallback& callback,
- GDataErrorCode status,
+ DriveErrorCode status,
scoped_ptr<base::Value> feed_data);
// Callback for handling response from |DriveAPIService::GetApplicationInfo|.
// If the application list is successfully parsed, passes the list to
// Drive webapps registry.
- void OnGetApplicationList(GDataErrorCode status,
+ void OnGetApplicationList(DriveErrorCode status,
scoped_ptr<base::Value> json);
// Callback for handling feed content fetching while searching for file info.
@@ -204,7 +204,7 @@ class GDataWapiFeedLoader {
// the content of the refreshed directory object and continue initially
// started FindEntryByPath() request.
void OnFeedFromServerLoaded(GetDocumentsParams* params,
- GDataFileError error);
+ DriveFileError error);
// Callback for handling response from |GDataWapiService::GetDocuments|.
// Invokes |callback| when done.
@@ -214,7 +214,7 @@ class GDataWapiFeedLoader {
const LoadDocumentFeedCallback& callback,
GetDocumentsParams* params,
base::TimeTicks start_time,
- GDataErrorCode status,
+ DriveErrorCode status,
scoped_ptr<base::Value> data);
// Callback for handling response from |DriveAPIService::GetChanglist|.
@@ -224,7 +224,7 @@ class GDataWapiFeedLoader {
const LoadDocumentFeedCallback& callback,
GetDocumentsParams* params,
base::TimeTicks start_time,
- GDataErrorCode status,
+ DriveErrorCode status,
scoped_ptr<base::Value> data);
// Save filesystem to disk.

Powered by Google App Engine
This is Rietveld 408576698