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

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

Issue 10834052: gdata: Add GDataCache::GetResourceIdsOfAllFiles() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1c1f0adfcd8b934902f5b0d672e6eea6e6c5142e..5aa8a06cb2faf4902a24425d1e43273a3d7d307c 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache.h
+++ b/chrome/browser/chromeos/gdata/gdata_cache.h
@@ -168,12 +168,19 @@ class GDataCache {
void GetResourceIdsOfBacklogOnUIThread(
const GetResourceIdsOfBacklogCallback& callback);
- // Gets the resource IDs of all pinned files, including pinned dirty files.
+ // Gets the resource IDs of all exsiting (i.e. cached locally) pinned
+ // files, including pinned dirty files.
//
// Must be called on UI thread. |callback| is run on UI thread.
void GetResourceIdsOfExistingPinnedFilesOnUIThread(
const GetResourceIdsCallback& callback);
+ // Gets the resource IDs of all files in the cache.
+ //
+ // Must be called on UI thread. |callback| is run on UI thread.
+ void GetResourceIdsOfAllFilesOnUIThread(
+ const GetResourceIdsCallback& callback);
+
// Frees up disk space to store the given number of bytes, while keeping
// kMinFreSpace bytes on the disk, if needed. |has_enough_space| is
// updated to indicate if we have enough space.
@@ -331,6 +338,10 @@ class GDataCache {
void GetResourceIdsOfExistingPinnedFiles(
std::vector<std::string>* resource_ids);
+ // Used to implement GetResourceIdsOfAllFilesOnUIThread.
+ void GetResourceIdsOfAllFiles(
+ std::vector<std::string>* resource_ids);
+
// Used to implement GetFileOnUIThread.
void GetFile(const std::string& resource_id,
const std::string& md5,
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698