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

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 22 matching lines...) Expand all
33 // FileSystemOperation overrides. 33 // FileSystemOperation overrides.
34 virtual void CreateFile(const FileSystemURL& url, 34 virtual void CreateFile(const FileSystemURL& url,
35 bool exclusive, 35 bool exclusive,
36 const StatusCallback& callback) OVERRIDE; 36 const StatusCallback& callback) OVERRIDE;
37 virtual void CreateDirectory(const FileSystemURL& url, 37 virtual void CreateDirectory(const FileSystemURL& url,
38 bool exclusive, 38 bool exclusive,
39 bool recursive, 39 bool recursive,
40 const StatusCallback& callback) OVERRIDE; 40 const StatusCallback& callback) OVERRIDE;
41 virtual void Copy(const FileSystemURL& src_url, 41 virtual void Copy(const FileSystemURL& src_url,
42 const FileSystemURL& dest_url, 42 const FileSystemURL& dest_url,
43 const CopyProgressCallback& progress_callback,
43 const StatusCallback& callback) OVERRIDE; 44 const StatusCallback& callback) OVERRIDE;
44 virtual void Move(const FileSystemURL& src_url, 45 virtual void Move(const FileSystemURL& src_url,
45 const FileSystemURL& dest_url, 46 const FileSystemURL& dest_url,
46 const StatusCallback& callback) OVERRIDE; 47 const StatusCallback& callback) OVERRIDE;
47 virtual void DirectoryExists(const FileSystemURL& url, 48 virtual void DirectoryExists(const FileSystemURL& url,
48 const StatusCallback& callback) OVERRIDE; 49 const StatusCallback& callback) OVERRIDE;
49 virtual void FileExists(const FileSystemURL& url, 50 virtual void FileExists(const FileSystemURL& url,
50 const StatusCallback& callback) OVERRIDE; 51 const StatusCallback& callback) OVERRIDE;
51 virtual void GetMetadata(const FileSystemURL& url, 52 virtual void GetMetadata(const FileSystemURL& url,
52 const GetMetadataCallback& callback) OVERRIDE; 53 const GetMetadataCallback& callback) OVERRIDE;
(...skipping 21 matching lines...) Expand all
74 const SnapshotFileCallback& callback) OVERRIDE; 75 const SnapshotFileCallback& callback) OVERRIDE;
75 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path, 76 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path,
76 const FileSystemURL& dest_url, 77 const FileSystemURL& dest_url,
77 const StatusCallback& callback) OVERRIDE; 78 const StatusCallback& callback) OVERRIDE;
78 virtual void RemoveFile(const FileSystemURL& url, 79 virtual void RemoveFile(const FileSystemURL& url,
79 const StatusCallback& callback) OVERRIDE; 80 const StatusCallback& callback) OVERRIDE;
80 virtual void RemoveDirectory(const FileSystemURL& url, 81 virtual void RemoveDirectory(const FileSystemURL& url,
81 const StatusCallback& callback) OVERRIDE; 82 const StatusCallback& callback) OVERRIDE;
82 virtual void CopyFileLocal(const FileSystemURL& src_url, 83 virtual void CopyFileLocal(const FileSystemURL& src_url,
83 const FileSystemURL& dest_url, 84 const FileSystemURL& dest_url,
85 const CopyFileProgressCallback& progress_callback,
84 const StatusCallback& callback) OVERRIDE; 86 const StatusCallback& callback) OVERRIDE;
85 virtual void MoveFileLocal(const FileSystemURL& src_url, 87 virtual void MoveFileLocal(const FileSystemURL& src_url,
86 const FileSystemURL& dest_url, 88 const FileSystemURL& dest_url,
87 const StatusCallback& callback) OVERRIDE; 89 const StatusCallback& callback) OVERRIDE;
88 virtual base::PlatformFileError SyncGetPlatformPath( 90 virtual base::PlatformFileError SyncGetPlatformPath(
89 const FileSystemURL& url, 91 const FileSystemURL& url,
90 base::FilePath* platform_path) OVERRIDE; 92 base::FilePath* platform_path) OVERRIDE;
91 93
92 FileSystemContext* file_system_context() const { 94 FileSystemContext* file_system_context() const {
93 return file_system_context_.get(); 95 return file_system_context_.get();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 OperationType pending_operation_; 196 OperationType pending_operation_;
195 197
196 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; 198 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_;
197 199
198 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); 200 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl);
199 }; 201 };
200 202
201 } // namespace fileapi 203 } // namespace fileapi
202 204
203 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 205 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_operation.h ('k') | webkit/browser/fileapi/file_system_operation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698