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

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

Issue 10823125: Drive: add a method to clear all local cache. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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_cache.h
diff --git a/chrome/browser/chromeos/gdata/gdata_cache.h b/chrome/browser/chromeos/gdata/gdata_cache.h
index 5aa8a06cb2faf4902a24425d1e43273a3d7d307c..849c3e69ccc416f9d8853f63445ab096a544c59f 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache.h
+++ b/chrome/browser/chromeos/gdata/gdata_cache.h
@@ -263,6 +263,11 @@ class GDataCache {
void RemoveOnUIThread(const std::string& resource_id,
const CacheOperationCallback& callback);
+ // Does the following:
+ // - remove all the files in the cache directory.
+ // - re-create the |metadata_| instance.
+ void ClearAllOnUIThread(const SetMountedStateCallback& callback);
satorux1 2012/08/01 20:50:31 The callback type name looks awkward for this func
yoshiki 2012/08/01 21:44:59 Done.
+
// Utility method to call Initialize on UI thread.
void RequestInitializeOnUIThread();
@@ -396,6 +401,9 @@ class GDataCache {
void Remove(const std::string& resource_id,
GDataFileError* error);
+ // Used to implement ClearAllUIThread.
+ void ClearAll(GDataFileError* error);
+
// Runs callback and notifies the observers when file is pinned.
void OnPinned(GDataFileError* error,
const std::string& resource_id,
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_cache.cc » ('j') | chrome/browser/chromeos/gdata/gdata_cache_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698