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

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

Issue 10543037: gdata: Convert public synchronous functions in GDataFileSystem to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase svn:trunk/src@141224. Created 8 years, 6 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_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h
index 87a6c2577ffb7d755f168d3f3c7b9e470b7c86ac..4d5c2912bd7a20a4ca25a1e876a28b0db47911cb 100644
--- a/chrome/browser/chromeos/gdata/gdata_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_util.h
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
+#include "base/bind.h"
+#include "base/memory/scoped_ptr.h"
#include "googleurl/src/gurl.h"
class FilePath;
@@ -77,12 +79,13 @@ bool ParseSearchFileName(const std::string& search_file_name,
// Examples: ExtractGDatPath("/special/drive/foo.txt") => "drive/foo.txt"
FilePath ExtractGDataPath(const FilePath& path);
-// Returns vector of all possible cache paths for a given path on gdata mount
-// point.
+// Inserts all possible cache paths for a given vector of paths on gdata mount
+// point into the output vector |cache_paths|.
satorux1 2012/06/08 18:23:52 Please document about |callback|.
hshi1 2012/06/08 18:25:09 Done.
void InsertGDataCachePathsPermissions(
Profile* profile_,
- const FilePath& gdata_path,
- std::vector<std::pair<FilePath, int> >* cache_paths);
+ scoped_ptr<std::vector<FilePath> > gdata_paths,
+ std::vector<std::pair<FilePath, int> >* cache_paths,
+ const base::Closure& callback);
// Returns true if gdata is currently active with the specified profile.
bool IsGDataAvailable(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698