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 6c9d1943eb2fb992ad3d74efa72893df90d7bc7b..6889d3492d4f15eb86dd7e8c5c37f6f5b80c1db8 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_util.h |
+++ b/chrome/browser/chromeos/gdata/gdata_util.h |
@@ -110,6 +110,20 @@ bool GetTimeFromString(const base::StringPiece& raw_value, base::Time* time); |
// Formats a base::Time as an RFC 3339 date/time (in UTC). |
std::string FormatTimeAsString(const base::Time& time); |
+// Callback type for PrepareWritableFilePathAndRun. |
+typedef base::Callback<void (GDataFileError, const FilePath& path)> |
+ OpenFileCallback; |
+ |
+// Invokes |callback| on blocking thread pool, after converting virtual |path| |
+// string like "/special/drive/foo.txt" to the concrete local cache file path. |
+// After |callback| returns, the written content is synchronized to the server. |
+// |
+// If |path| is not a GData path, it is regarded as a local path and no path |
+// conversion takes place. |
+void PrepareWritableFileAndRun(Profile* profile, |
+ const FilePath& path, |
+ const OpenFileCallback& callback); |
+ |
} // namespace util |
} // namespace gdata |