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

Unified Diff: chrome/browser/chromeos/drive/file_system.h

Issue 22335004: Add drive::FileSystem::GetFileByPathForSaving(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/drive/file_system.h
diff --git a/chrome/browser/chromeos/drive/file_system.h b/chrome/browser/chromeos/drive/file_system.h
index ebead4344a415bfa5fbdc5b807d591cbb417cc7d..e42ddb9e6f978c9255df145c7a7930e9842da280 100644
--- a/chrome/browser/chromeos/drive/file_system.h
+++ b/chrome/browser/chromeos/drive/file_system.h
@@ -40,6 +40,7 @@ namespace internal {
class ChangeListLoader;
class ResourceMetadata;
class SyncClient;
+class FileWriteWatcher;
} // namespace internal
namespace file_system {
@@ -47,6 +48,7 @@ class CopyOperation;
class CreateDirectoryOperation;
class CreateFileOperation;
class DownloadOperation;
+class GetFileForSavingOperation;
class MoveOperation;
class OpenFileOperation;
class OperationObserver;
@@ -123,6 +125,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,
@@ -300,6 +304,7 @@ class FileSystem : public FileSystemInterface,
scoped_ptr<PrefChangeRegistrar> pref_registrar_;
scoped_ptr<internal::SyncClient> sync_client_;
+ scoped_ptr<internal::FileWriteWatcher> file_write_watcher_;
// The loader is used to load the change lists.
scoped_ptr<internal::ChangeListLoader> change_list_loader_;
@@ -322,6 +327,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.

Powered by Google App Engine
This is Rietveld 408576698