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

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

Issue 10827068: gdata: Fix "save as pdf" to work on Google Drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + made header ordering correct. 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_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h
index 41555bc6199e161ccc44986a2b156d2483999f07..67bf3c7621bd7994bd30f83338c8100b22dc3f56 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

Powered by Google App Engine
This is Rietveld 408576698