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

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

Issue 13508005: Allow RequestOSFileHandle if an app has unlimited storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert most of patch set 2 Created 7 years, 8 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
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_CALLBACK_DISPATCHER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_util_proxy.h" 11 #include "base/files/file_util_proxy.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "webkit/quota/quota_types.h"
14 #include "webkit/storage/webkit_storage_export.h" 15 #include "webkit/storage/webkit_storage_export.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace fileapi { 19 namespace fileapi {
19 20
20 // This class mirrors the callbacks in 21 // This class mirrors the callbacks in
21 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h, 22 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h,
22 // but uses chromium types. 23 // but uses chromium types.
23 class WEBKIT_STORAGE_EXPORT FileSystemCallbackDispatcher { 24 class WEBKIT_STORAGE_EXPORT FileSystemCallbackDispatcher {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 57
57 // Called with an error code when a requested operation has failed. 58 // Called with an error code when a requested operation has failed.
58 virtual void DidFail(base::PlatformFileError error_code) = 0; 59 virtual void DidFail(base::PlatformFileError error_code) = 0;
59 60
60 // Callback for FileWriter's write() call. 61 // Callback for FileWriter's write() call.
61 virtual void DidWrite(int64 bytes, bool complete) = 0; 62 virtual void DidWrite(int64 bytes, bool complete) = 0;
62 63
63 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just 64 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just
64 // for Pepper. 65 // for Pepper.
65 // The method will be responsible for closing |file|. 66 // The method will be responsible for closing |file|.
66 virtual void DidOpenFile( 67 virtual void DidOpenFile(base::PlatformFile file,
67 base::PlatformFile file); 68 quota::QuotaLimitType quota_policy);
68 }; 69 };
69 70
70 } // namespace fileapi 71 } // namespace fileapi
71 72
72 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 73 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698