Chromium Code Reviews| 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, |