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

Unified Diff: chrome/browser/chromeos/drive/drive_feed_loader.h

Issue 11227020: Set root resource ID upon full feed update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert the previous 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 | « no previous file | chrome/browser/chromeos/drive/drive_feed_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_feed_loader.h
diff --git a/chrome/browser/chromeos/drive/drive_feed_loader.h b/chrome/browser/chromeos/drive/drive_feed_loader.h
index ebe9823b317a660eac1ddebc91ac5a593d4dc272..c55cb7c28561bc31814f7cc51bc08d40c5a62e38 100644
--- a/chrome/browser/chromeos/drive/drive_feed_loader.h
+++ b/chrome/browser/chromeos/drive/drive_feed_loader.h
@@ -76,6 +76,9 @@ struct LoadFeedParams {
FileOperationCallback load_finished_callback;
ScopedVector<google_apis::DocumentFeed> feed_list;
scoped_ptr<GetDocumentsUiState> ui_state;
+ // On initial feed load for Drive API, remember root ID for
+ // DriveResourceData initialization later in UpdateFromFeed().
+ std::string root_resource_id;
};
// Defines set of parameters sent to callback OnProtoLoaded().
@@ -138,10 +141,12 @@ class DriveFeedLoader {
//
// See comments at DriveFeedProcessor::ApplyFeeds() for
// |start_changestamp| and |root_feed_changestamp|.
+ // |root_resource_id| is used for Drive API.
void UpdateFromFeed(
- const ScopedVector<google_apis::DocumentFeed>& feed_list,
- int64 start_changestamp,
- int64 root_feed_changestamp);
+ const ScopedVector<google_apis::DocumentFeed>& feed_list,
+ int64 start_changestamp,
+ int64 root_feed_changestamp,
+ const std::string& root_resource_id);
// Indicates whether there is a feed refreshing server request is in flight.
bool refreshing() const { return refreshing_; }
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_feed_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698