| Index: chrome/browser/chromeos/drive/change_list_loader.h
|
| diff --git a/chrome/browser/chromeos/drive/change_list_loader.h b/chrome/browser/chromeos/drive/change_list_loader.h
|
| index ea640f140c8cf4dcc9320fa338d1fe3d875d794d..7307a457a3d31ed37e793b88056a14c76712a7fa 100644
|
| --- a/chrome/browser/chromeos/drive/change_list_loader.h
|
| +++ b/chrome/browser/chromeos/drive/change_list_loader.h
|
| @@ -114,12 +114,13 @@ class ChangeListLoader {
|
| // Record file statistics as UMA histograms.
|
| //
|
| // See comments at ChangeListProcessor::ApplyFeeds() for
|
| - // |is_delta_feed| and |root_feed_changestamp|.
|
| + // |about_resource| and |is_delta_feed|.
|
| // |update_finished_callback| must not be null.
|
| - void UpdateFromFeed(const ScopedVector<google_apis::ResourceList>& feed_list,
|
| - bool is_delta_feed,
|
| - int64 root_feed_changestamp,
|
| - const base::Closure& update_finished_callback);
|
| + void UpdateFromFeed(
|
| + scoped_ptr<google_apis::AboutResource> about_resource,
|
| + const ScopedVector<google_apis::ResourceList>& feed_list,
|
| + bool is_delta_feed,
|
| + const base::Closure& update_finished_callback);
|
|
|
| // Schedules |callback| to run when it's ready (i.e. the change list
|
| // loading is complete or the directory specified by |directory_fetch_info|
|
| @@ -201,21 +202,21 @@ class ChangeListLoader {
|
| google_apis::GDataErrorCode status,
|
| scoped_ptr<google_apis::AboutResource> about_resource);
|
|
|
| - // Compares |remote_changestamp| and |local_changestamp| and triggers
|
| - // LoadFromServer if necessary.
|
| + // Compares the largetst_change_id in |about_resource| and |local_changestamp|
|
| + // and triggers LoadFromServer if necessary.
|
| void CompareChangestampsAndLoadIfNeeded(
|
| const DirectoryFetchInfo& directory_fetch_info,
|
| const FileOperationCallback& callback,
|
| - int64 remote_changestamp,
|
| + scoped_ptr<google_apis::AboutResource> about_resource,
|
| int64 local_changestamp);
|
|
|
| // Starts loading the change list since |start_changestamp|, or the full
|
| - // resource list if |start_changestamp| is zero. |remote_changestamp| will
|
| - // be stored in DriveResourceMetadata, once loading is done.
|
| - // callback must not be null.
|
| + // resource list if |start_changestamp| is zero. For full update, the
|
| + // largest_change_id and root_folder_id from |about_resource| will be used.
|
| + // |callback| must not be null.
|
| void LoadChangeListFromServer(
|
| + scoped_ptr<google_apis::AboutResource> about_resource,
|
| int64 start_changestamp,
|
| - int64 remote_changestamp,
|
| const FileOperationCallback& callback);
|
|
|
| // Callback for handling response from |DriveAPIService::GetAppList|.
|
| @@ -230,8 +231,8 @@ class ChangeListLoader {
|
| // the content of the refreshed directory object and continue initially
|
| // started FindEntryByPath() request.
|
| void UpdateMetadataFromFeedAfterLoadFromServer(
|
| + scoped_ptr<google_apis::AboutResource> about_resource,
|
| bool is_delta_feed,
|
| - int64 feed_changestamp,
|
| const FileOperationCallback& callback,
|
| const ScopedVector<google_apis::ResourceList>& feed_list,
|
| DriveFileError error);
|
|
|