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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_interface.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: Add mock method. 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_file_system_interface.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_interface.h b/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
index 7b01766cff3d19802af058680991f88577a31d68..7cd231f24af9a23a792aeacce4310476b06336b2 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
@@ -178,6 +178,13 @@ class GDataFileSystemInterface {
virtual void CloseFile(const FilePath& file_path,
const FileOperationCallback& callback) = 0;
+ // Calls OpenFile, |callback|, then CloseFile in this order.
+ //
+ // Can be called from UI/IO thread. |callback| is run on th blocking thread
+ // pool that allows file operations.
+ virtual void PrepareWritableFileAndRun(const FilePath& path,
+ const OpenFileCallback& callback) = 0;
satorux1 2012/07/27 22:56:29 We want to minimize functions in GDataFileSystem.
kinaba 2012/07/28 00:06:10 I'll think about it. Do you have any advice where
satorux1 2012/07/28 00:44:07 I guess we can move this to gdata_util.cc. For Clo
kinaba 2012/08/01 13:48:45 Created a separate class (suggestions are highly w
+
// Copies |src_file_path| to |dest_file_path| on the file system.
// |src_file_path| can be a hosted document (see limitations below).
// |dest_file_path| is expected to be of the same type of |src_file_path|

Powered by Google App Engine
This is Rietveld 408576698