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

Side by Side Diff: webkit/browser/fileapi/file_system_operation_impl.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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // FileSystemOperation overrides. 42 // FileSystemOperation overrides.
43 virtual void CreateFile(const FileSystemURL& url, 43 virtual void CreateFile(const FileSystemURL& url,
44 bool exclusive, 44 bool exclusive,
45 const StatusCallback& callback) OVERRIDE; 45 const StatusCallback& callback) OVERRIDE;
46 virtual void CreateDirectory(const FileSystemURL& url, 46 virtual void CreateDirectory(const FileSystemURL& url,
47 bool exclusive, 47 bool exclusive,
48 bool recursive, 48 bool recursive,
49 const StatusCallback& callback) OVERRIDE; 49 const StatusCallback& callback) OVERRIDE;
50 virtual void Copy(const FileSystemURL& src_url, 50 virtual void Copy(const FileSystemURL& src_url,
51 const FileSystemURL& dest_url, 51 const FileSystemURL& dest_url,
52 const CopyProgressCallback& progress_callback,
52 const StatusCallback& callback) OVERRIDE; 53 const StatusCallback& callback) OVERRIDE;
53 virtual void Move(const FileSystemURL& src_url, 54 virtual void Move(const FileSystemURL& src_url,
54 const FileSystemURL& dest_url, 55 const FileSystemURL& dest_url,
55 const StatusCallback& callback) OVERRIDE; 56 const StatusCallback& callback) OVERRIDE;
56 virtual void DirectoryExists(const FileSystemURL& url, 57 virtual void DirectoryExists(const FileSystemURL& url,
57 const StatusCallback& callback) OVERRIDE; 58 const StatusCallback& callback) OVERRIDE;
58 virtual void FileExists(const FileSystemURL& url, 59 virtual void FileExists(const FileSystemURL& url,
59 const StatusCallback& callback) OVERRIDE; 60 const StatusCallback& callback) OVERRIDE;
60 virtual void GetMetadata(const FileSystemURL& url, 61 virtual void GetMetadata(const FileSystemURL& url,
61 const GetMetadataCallback& callback) OVERRIDE; 62 const GetMetadataCallback& callback) OVERRIDE;
(...skipping 21 matching lines...) Expand all
83 const SnapshotFileCallback& callback) OVERRIDE; 84 const SnapshotFileCallback& callback) OVERRIDE;
84 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path, 85 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path,
85 const FileSystemURL& dest_url, 86 const FileSystemURL& dest_url,
86 const StatusCallback& callback) OVERRIDE; 87 const StatusCallback& callback) OVERRIDE;
87 virtual void RemoveFile(const FileSystemURL& url, 88 virtual void RemoveFile(const FileSystemURL& url,
88 const StatusCallback& callback) OVERRIDE; 89 const StatusCallback& callback) OVERRIDE;
89 virtual void RemoveDirectory(const FileSystemURL& url, 90 virtual void RemoveDirectory(const FileSystemURL& url,
90 const StatusCallback& callback) OVERRIDE; 91 const StatusCallback& callback) OVERRIDE;
91 virtual void CopyFileLocal(const FileSystemURL& src_url, 92 virtual void CopyFileLocal(const FileSystemURL& src_url,
92 const FileSystemURL& dest_url, 93 const FileSystemURL& dest_url,
94 const CopyFileProgressCallback& progress_callback,
93 const StatusCallback& callback) OVERRIDE; 95 const StatusCallback& callback) OVERRIDE;
94 virtual void MoveFileLocal(const FileSystemURL& src_url, 96 virtual void MoveFileLocal(const FileSystemURL& src_url,
95 const FileSystemURL& dest_url, 97 const FileSystemURL& dest_url,
96 const StatusCallback& callback) OVERRIDE; 98 const StatusCallback& callback) OVERRIDE;
97 virtual base::PlatformFileError SyncGetPlatformPath( 99 virtual base::PlatformFileError SyncGetPlatformPath(
98 const FileSystemURL& url, 100 const FileSystemURL& url,
99 base::FilePath* platform_path) OVERRIDE; 101 base::FilePath* platform_path) OVERRIDE;
100 102
101 FileSystemContext* file_system_context() const { 103 FileSystemContext* file_system_context() const {
102 return file_system_context_.get(); 104 return file_system_context_.get();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 OperationType pending_operation_; 198 OperationType pending_operation_;
197 199
198 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; 200 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_;
199 201
200 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); 202 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl);
201 }; 203 };
202 204
203 } // namespace fileapi 205 } // namespace fileapi
204 206
205 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 207 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698