From 67d35b02236148e5b696b38ea9aceb77de9d16a4 Mon Sep 17 00:00:00 2001 From: "kinaba@chromium.org" Date: Thu, 8 Aug 2013 11:19:57 +0000 Subject: Add drive::FileSystem::GetFileByPathForSaving(). This is a part of the effort to enable Drive in the Save-As dialog of Chrome OS for every call site. For that, we need to care about existing callers that just simply write to local file paths returned by the dialog. By calling the newly added method, Drive file system will return a local cache whose modification is monitored for syncing. BUG=140425 Review URL: https://chromiumcodereview.appspot.com/22335004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216377 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/drive/file_system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/chromeos/drive/file_system.h') diff --git a/chrome/browser/chromeos/drive/file_system.h b/chrome/browser/chromeos/drive/file_system.h index 5bb1ca8..dacc522 100644 --- a/chrome/browser/chromeos/drive/file_system.h +++ b/chrome/browser/chromeos/drive/file_system.h @@ -46,6 +46,7 @@ class CopyOperation; class CreateDirectoryOperation; class CreateFileOperation; class DownloadOperation; +class GetFileForSavingOperation; class MoveOperation; class OpenFileOperation; class OperationObserver; @@ -122,6 +123,8 @@ class FileSystem : public FileSystemInterface, const FileOperationCallback& callback) OVERRIDE; virtual void GetFileByPath(const base::FilePath& file_path, const GetFileCallback& callback) OVERRIDE; + virtual void GetFileByPathForSaving(const base::FilePath& file_path, + const GetFileCallback& callback) OVERRIDE; virtual void GetFileContentByPath( const base::FilePath& file_path, const GetFileContentInitializedCallback& initialized_callback, @@ -319,6 +322,8 @@ class FileSystem : public FileSystemInterface, scoped_ptr download_operation_; scoped_ptr update_operation_; scoped_ptr search_operation_; + scoped_ptr + get_file_for_saving_operation_; // Note: This should remain the last member so it'll be destroyed and // invalidate the weak pointers before any other members are destroyed. -- cgit v1.1