OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 }; | 58 }; |
59 | 59 |
60 // Opens a FileSystem. | 60 // Opens a FileSystem. |
61 // WebFileSystemCallbacks::didOpenFileSystem() must be called with | 61 // WebFileSystemCallbacks::didOpenFileSystem() must be called with |
62 // a name and root path for the requested FileSystem when the operation | 62 // a name and root path for the requested FileSystem when the operation |
63 // is completed successfully. WebFileSystemCallbacks::didFail() must be | 63 // is completed successfully. WebFileSystemCallbacks::didFail() must be |
64 // called otherwise. The create bool is for indicating whether or not to | 64 // called otherwise. The create bool is for indicating whether or not to |
65 // create root path for file systems if it do not exist. | 65 // create root path for file systems if it do not exist. |
66 virtual void openFileSystem(const WebURL& storagePartition, const WebFileSys
temType, bool create, WebFileSystemCallbacks) { WEBKIT_ASSERT_NOT_REACHED(); } | 66 virtual void openFileSystem(const WebURL& storagePartition, const WebFileSys
temType, bool create, WebFileSystemCallbacks) { WEBKIT_ASSERT_NOT_REACHED(); } |
67 | 67 |
| 68 // Resolves a filesystem URL. |
| 69 // WebFileSystemCallbacks::didSucceed() must be called with filesystem |
| 70 // information (name, root path and type) and file metadata (file path and |
| 71 // file type) when the operation is completed successfully. |
| 72 // WebFileSystemCallbacks::didFail() must be called otherwise. |
| 73 virtual void resolveURL(const WebURL& fileSystemURL, WebFileSystemCallbacks)
{ WEBKIT_ASSERT_NOT_REACHED(); } |
| 74 |
68 // Deletes FileSystem. | 75 // Deletes FileSystem. |
69 // WebFileSystemCallbacks::didSucceed() must be called when the operation | 76 // WebFileSystemCallbacks::didSucceed() must be called when the operation |
70 // is completed successfully. WebFileSystemCallbacks::didFail() must be | 77 // is completed successfully. WebFileSystemCallbacks::didFail() must be |
71 // called otherwise. | 78 // called otherwise. |
72 // All in-flight operations and following operations may fail after the | 79 // All in-flight operations and following operations may fail after the |
73 // FileSystem is deleted. | 80 // FileSystem is deleted. |
74 virtual void deleteFileSystem(const WebURL& storagePartition, const WebFileS
ystemType, WebFileSystemCallbacks) { } | 81 virtual void deleteFileSystem(const WebURL& storagePartition, const WebFileS
ystemType, WebFileSystemCallbacks) { } |
75 | 82 |
76 // Moves a file or directory at |srcPath| to |destPath|. | 83 // Moves a file or directory at |srcPath| to |destPath|. |
77 // WebFileSystemCallbacks::didSucceed() must be called when the operation is
completed successfully. | 84 // WebFileSystemCallbacks::didSucceed() must be called when the operation is
completed successfully. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // WebFileSystemCallbacks::didFail() must be called otherwise. | 163 // WebFileSystemCallbacks::didFail() must be called otherwise. |
157 virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSy
stemCallbacks) { WEBKIT_ASSERT_NOT_REACHED(); } | 164 virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSy
stemCallbacks) { WEBKIT_ASSERT_NOT_REACHED(); } |
158 | 165 |
159 protected: | 166 protected: |
160 virtual ~WebFileSystem() { } | 167 virtual ~WebFileSystem() { } |
161 }; | 168 }; |
162 | 169 |
163 } // namespace WebKit | 170 } // namespace WebKit |
164 | 171 |
165 #endif | 172 #endif |
OLD | NEW |