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

Side by Side Diff: webkit/fileapi/file_system_operation.h

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "base/process.h" 12 #include "base/process.h"
13 #include "webkit/blob/shareable_file_reference.h"
14 13
15 namespace base { 14 namespace base {
16 class Time; 15 class Time;
17 } // namespace base 16 } // namespace base
18 17
19 namespace net { 18 namespace net {
20 class URLRequest; 19 class URLRequest;
21 class URLRequestContext; 20 class URLRequestContext;
22 } // namespace net 21 } // namespace net
23 22
(...skipping 22 matching lines...) Expand all
46 // method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists, 45 // method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists,
47 // GetMetadata, ReadDirectory and Remove) may be called during the 46 // GetMetadata, ReadDirectory and Remove) may be called during the
48 // lifetime of this object and it should be called no more than once. 47 // lifetime of this object and it should be called no more than once.
49 // 48 //
50 // 2) Be self-destructed, or get deleted via base::Owned() after the 49 // 2) Be self-destructed, or get deleted via base::Owned() after the
51 // operation finishes and completion callback is called. 50 // operation finishes and completion callback is called.
52 // 51 //
53 // 3) Deliver the results of operations to the client via the callback function 52 // 3) Deliver the results of operations to the client via the callback function
54 // passed as the last parameter of the method. 53 // passed as the last parameter of the method.
55 // 54 //
56 class FileSystemOperationInterface { 55 class FileSystemOperation {
57 public: 56 public:
58 virtual ~FileSystemOperationInterface() {} 57 virtual ~FileSystemOperation() {}
59 58
60 // Used for CreateFile(), etc. |result| is the return code of the operation. 59 // Used for CreateFile(), etc. |result| is the return code of the operation.
61 typedef base::Callback<void(base::PlatformFileError result)> StatusCallback; 60 typedef base::Callback<void(base::PlatformFileError result)> StatusCallback;
62 61
63 // Used for GetMetadata(). |result| is the return code of the operation, 62 // Used for GetMetadata(). |result| is the return code of the operation,
64 // |file_info| is the obtained file info, and |platform_path| is the path 63 // |file_info| is the obtained file info, and |platform_path| is the path
65 // of the file. 64 // of the file.
66 typedef base::Callback< 65 typedef base::Callback<
67 void(base::PlatformFileError result, 66 void(base::PlatformFileError result,
68 const base::PlatformFileInfo& file_info, 67 const base::PlatformFileInfo& file_info,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 kOperationTouchFile, 270 kOperationTouchFile,
272 kOperationOpenFile, 271 kOperationOpenFile,
273 kOperationCloseFile, 272 kOperationCloseFile,
274 kOperationGetLocalPath, 273 kOperationGetLocalPath,
275 kOperationCancel, 274 kOperationCancel,
276 }; 275 };
277 }; 276 };
278 277
279 } // namespace fileapi 278 } // namespace fileapi
280 279
281 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 280 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/file_system_operation_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698