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

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

Issue 118993002: drive: Move FileSystem::LoadDirectoryIfNeeded to ChangeListLoader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 7 years 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 | « chrome/browser/chromeos/drive/fake_file_system.cc ('k') | chrome/browser/chromeos/drive/file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system.h
diff --git a/chrome/browser/chromeos/drive/file_system.h b/chrome/browser/chromeos/drive/file_system.h
index 0f47b699567905d2ddd3a572f556045c7e312e75..79e3986ba58be87735fd2196bd1272f1bd967185 100644
--- a/chrome/browser/chromeos/drive/file_system.h
+++ b/chrome/browser/chromeos/drive/file_system.h
@@ -152,7 +152,7 @@ class FileSystem : public FileSystemInterface,
virtual void GetCacheEntry(
const base::FilePath& drive_file_path,
const GetCacheEntryCallback& callback) OVERRIDE;
- virtual void Reload(const FileOperationCallback& callback) OVERRIDE;
+ virtual void Reset(const FileOperationCallback& callback) OVERRIDE;
// file_system::OperationObserver overrides.
virtual void OnDirectoryChangedByOperation(
@@ -175,12 +175,8 @@ class FileSystem : public FileSystemInterface,
internal::SyncClient* sync_client_for_testing() { return sync_client_.get(); }
private:
- // Part of Reload(). This is called after the cache and the resource metadata
- // is cleared, and triggers full feed fetching.
- void ReloadAfterReset(const FileOperationCallback& callback, FileError error);
-
- // Used for initialization and Reload(). (Re-)initializes sub components that
- // need to be recreated during the reload of resource metadata and the cache.
+ // Used for initialization and Reset(). (Re-)initializes sub components that
+ // need to be recreated during the reset of resource metadata and the cache.
void ResetComponents();
// Part of CreateDirectory(). Called after ChangeListLoader::LoadIfNeeded()
@@ -220,16 +216,6 @@ class FileSystem : public FileSystemInterface,
const GetResourceEntryCallback& callback,
FileError error);
- // Loads the entry info of the children of |directory_path| to resource
- // metadata. |callback| must not be null.
- void LoadDirectoryIfNeeded(const base::FilePath& directory_path,
- const FileOperationCallback& callback);
- void LoadDirectoryIfNeededAfterGetEntry(
- const base::FilePath& directory_path,
- const FileOperationCallback& callback,
- FileError error,
- scoped_ptr<ResourceEntry> entry);
-
// Part of ReadDirectory()
// 1) Called when LoadDirectoryIfNeeded() is complete.
// 2) Called when ResourceMetadata::ReadDirectory() is complete.
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system.cc ('k') | chrome/browser/chromeos/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698