summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/drive_file_system_interface.h
diff options
context:
space:
mode:
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 04:49:00 +0000
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 04:49:00 +0000
commitcc45a5f64e42b06da019b2b76e505b6cf1955e74 (patch)
treea5024a2693d3637d3f7e5d6af37d40ecfb71b9ba /chrome/browser/chromeos/drive/drive_file_system_interface.h
parent01764cd9734cf0bab1cbbb4d45a83801dd441a91 (diff)
downloadchromium_src-cc45a5f64e42b06da019b2b76e505b6cf1955e74.zip
chromium_src-cc45a5f64e42b06da019b2b76e505b6cf1955e74.tar.gz
chromium_src-cc45a5f64e42b06da019b2b76e505b6cf1955e74.tar.bz2
Add a thin proxy method DriveFileSystemInterface::IterateCache.
This is a part of getting rid of direct accessing to DriveCache from outside of drive. This will replace DriveCache::Iterate in drive_internals_ui.cc BUG=232450 TEST=Ran unit_tests Review URL: https://chromiumcodereview.appspot.com/13937015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/drive_file_system_interface.h')
-rw-r--r--chrome/browser/chromeos/drive/drive_file_system_interface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/drive/drive_file_system_interface.h b/chrome/browser/chromeos/drive/drive_file_system_interface.h
index afe89608..45602ab 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_interface.h
+++ b/chrome/browser/chromeos/drive/drive_file_system_interface.h
@@ -459,6 +459,12 @@ class DriveFileSystemInterface {
const std::string& md5,
const GetCacheEntryCallback& callback) = 0;
+ // Iterates all files in the cache and calls |iteration_callback| for each
+ // file. |completion_callback| is run upon completion.
+ // Neither |iteration_callback| nor |completion_callback| must be null.
+ virtual void IterateCache(const CacheIterateCallback& iteration_callback,
+ const base::Closure& completion_callback) = 0;
+
// Reloads the file system feeds from the server.
virtual void Reload() = 0;
};