summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/file_system.h
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-08 11:19:57 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-08 11:19:57 +0000
commit67d35b02236148e5b696b38ea9aceb77de9d16a4 (patch)
treef39da1746850cca8fed0d45749ce0df043f7b585 /chrome/browser/chromeos/drive/file_system.h
parent3aacc9c9ec7d8c3124c8263d0f70bcf3c2cb2866 (diff)
downloadchromium_src-67d35b02236148e5b696b38ea9aceb77de9d16a4.zip
chromium_src-67d35b02236148e5b696b38ea9aceb77de9d16a4.tar.gz
chromium_src-67d35b02236148e5b696b38ea9aceb77de9d16a4.tar.bz2
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
Diffstat (limited to 'chrome/browser/chromeos/drive/file_system.h')
-rw-r--r--chrome/browser/chromeos/drive/file_system.h5
1 files changed, 5 insertions, 0 deletions
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<file_system::DownloadOperation> download_operation_;
scoped_ptr<file_system::UpdateOperation> update_operation_;
scoped_ptr<file_system::SearchOperation> search_operation_;
+ scoped_ptr<file_system::GetFileForSavingOperation>
+ 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.