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

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

Issue 14265022: [Quota][FileAPI] Add quota policy to FileSystemOperationContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop .gitmodule change Created 7 years, 7 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_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_util_proxy.h" 10 #include "base/files/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/quota/quota_types.h"
13 14
14 namespace base { 15 namespace base {
15 class Time; 16 class Time;
16 } // namespace base 17 } // namespace base
17 18
18 namespace net { 19 namespace net {
19 class URLRequestContext; 20 class URLRequestContext;
20 } // namespace net 21 } // namespace net
21 22
22 namespace webkit_blob { 23 namespace webkit_blob {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // of the file. 64 // of the file.
64 typedef base::Callback< 65 typedef base::Callback<
65 void(base::PlatformFileError result, 66 void(base::PlatformFileError result,
66 const base::PlatformFileInfo& file_info, 67 const base::PlatformFileInfo& file_info,
67 const base::FilePath& platform_path)> GetMetadataCallback; 68 const base::FilePath& platform_path)> GetMetadataCallback;
68 69
69 // Used for OpenFile(). |result| is the return code of the operation. 70 // Used for OpenFile(). |result| is the return code of the operation.
70 typedef base::Callback< 71 typedef base::Callback<
71 void(base::PlatformFileError result, 72 void(base::PlatformFileError result,
72 base::PlatformFile file, 73 base::PlatformFile file,
73 base::ProcessHandle peer_handle)> OpenFileCallback; 74 base::ProcessHandle peer_handle,
75 quota::QuotaLimitType quota_limit_type)> OpenFileCallback;
74 76
75 // Used for ReadDirectoryCallback. 77 // Used for ReadDirectoryCallback.
76 typedef std::vector<base::FileUtilProxy::Entry> FileEntryList; 78 typedef std::vector<base::FileUtilProxy::Entry> FileEntryList;
77 79
78 // Used for ReadDirectory(). |result| is the return code of the operation, 80 // Used for ReadDirectory(). |result| is the return code of the operation,
79 // |file_list| is the list of files read, and |has_more| is true if some files 81 // |file_list| is the list of files read, and |has_more| is true if some files
80 // are yet to be read. 82 // are yet to be read.
81 typedef base::Callback< 83 typedef base::Callback<
82 void(base::PlatformFileError result, 84 void(base::PlatformFileError result,
83 const FileEntryList& file_list, 85 const FileEntryList& file_list,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 kOperationOpenFile, 273 kOperationOpenFile,
272 kOperationCloseFile, 274 kOperationCloseFile,
273 kOperationGetLocalPath, 275 kOperationGetLocalPath,
274 kOperationCancel, 276 kOperationCancel,
275 }; 277 };
276 }; 278 };
277 279
278 } // namespace fileapi 280 } // namespace fileapi
279 281
280 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 282 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698