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

Side by Side Diff: chrome/browser/sync_file_system/local/syncable_file_system_operation.h

Issue 24030002: Adds callbacks to notify progress into Copy's API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 24 matching lines...) Expand all
35 // fileapi::FileSystemOperation overrides. 35 // fileapi::FileSystemOperation overrides.
36 virtual void CreateFile(const fileapi::FileSystemURL& url, 36 virtual void CreateFile(const fileapi::FileSystemURL& url,
37 bool exclusive, 37 bool exclusive,
38 const StatusCallback& callback) OVERRIDE; 38 const StatusCallback& callback) OVERRIDE;
39 virtual void CreateDirectory(const fileapi::FileSystemURL& url, 39 virtual void CreateDirectory(const fileapi::FileSystemURL& url,
40 bool exclusive, 40 bool exclusive,
41 bool recursive, 41 bool recursive,
42 const StatusCallback& callback) OVERRIDE; 42 const StatusCallback& callback) OVERRIDE;
43 virtual void Copy(const fileapi::FileSystemURL& src_url, 43 virtual void Copy(const fileapi::FileSystemURL& src_url,
44 const fileapi::FileSystemURL& dest_url, 44 const fileapi::FileSystemURL& dest_url,
45 const CopyProgressCallback& progress_callback,
45 const StatusCallback& callback) OVERRIDE; 46 const StatusCallback& callback) OVERRIDE;
46 virtual void Move(const fileapi::FileSystemURL& src_url, 47 virtual void Move(const fileapi::FileSystemURL& src_url,
47 const fileapi::FileSystemURL& dest_url, 48 const fileapi::FileSystemURL& dest_url,
48 const StatusCallback& callback) OVERRIDE; 49 const StatusCallback& callback) OVERRIDE;
49 virtual void DirectoryExists(const fileapi::FileSystemURL& url, 50 virtual void DirectoryExists(const fileapi::FileSystemURL& url,
50 const StatusCallback& callback) OVERRIDE; 51 const StatusCallback& callback) OVERRIDE;
51 virtual void FileExists(const fileapi::FileSystemURL& url, 52 virtual void FileExists(const fileapi::FileSystemURL& url,
52 const StatusCallback& callback) OVERRIDE; 53 const StatusCallback& callback) OVERRIDE;
53 virtual void GetMetadata(const fileapi::FileSystemURL& url, 54 virtual void GetMetadata(const fileapi::FileSystemURL& url,
54 const GetMetadataCallback& callback) OVERRIDE; 55 const GetMetadataCallback& callback) OVERRIDE;
(...skipping 21 matching lines...) Expand all
76 const SnapshotFileCallback& callback) OVERRIDE; 77 const SnapshotFileCallback& callback) OVERRIDE;
77 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path, 78 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path,
78 const fileapi::FileSystemURL& dest_url, 79 const fileapi::FileSystemURL& dest_url,
79 const StatusCallback& callback) OVERRIDE; 80 const StatusCallback& callback) OVERRIDE;
80 virtual void RemoveFile(const fileapi::FileSystemURL& url, 81 virtual void RemoveFile(const fileapi::FileSystemURL& url,
81 const StatusCallback& callback) OVERRIDE; 82 const StatusCallback& callback) OVERRIDE;
82 virtual void RemoveDirectory(const fileapi::FileSystemURL& url, 83 virtual void RemoveDirectory(const fileapi::FileSystemURL& url,
83 const StatusCallback& callback) OVERRIDE; 84 const StatusCallback& callback) OVERRIDE;
84 virtual void CopyFileLocal(const fileapi::FileSystemURL& src_url, 85 virtual void CopyFileLocal(const fileapi::FileSystemURL& src_url,
85 const fileapi::FileSystemURL& dest_url, 86 const fileapi::FileSystemURL& dest_url,
87 const CopyFileProgressCallback& progress_callback,
86 const StatusCallback& callback) OVERRIDE; 88 const StatusCallback& callback) OVERRIDE;
87 virtual void MoveFileLocal(const fileapi::FileSystemURL& src_url, 89 virtual void MoveFileLocal(const fileapi::FileSystemURL& src_url,
88 const fileapi::FileSystemURL& dest_url, 90 const fileapi::FileSystemURL& dest_url,
89 const StatusCallback& callback) OVERRIDE; 91 const StatusCallback& callback) OVERRIDE;
90 virtual base::PlatformFileError SyncGetPlatformPath( 92 virtual base::PlatformFileError SyncGetPlatformPath(
91 const fileapi::FileSystemURL& url, 93 const fileapi::FileSystemURL& url,
92 base::FilePath* platform_path) OVERRIDE; 94 base::FilePath* platform_path) OVERRIDE;
93 95
94 private: 96 private:
95 typedef SyncableFileSystemOperation self; 97 typedef SyncableFileSystemOperation self;
(...skipping 26 matching lines...) Expand all
122 bool is_directory_operation_enabled_; 124 bool is_directory_operation_enabled_;
123 125
124 base::WeakPtrFactory<SyncableFileSystemOperation> weak_factory_; 126 base::WeakPtrFactory<SyncableFileSystemOperation> weak_factory_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); 128 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation);
127 }; 129 };
128 130
129 } // namespace sync_file_system 131 } // namespace sync_file_system
130 132
131 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_ H_ 133 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698