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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 // Opens a FileSystem. | 61 // Opens a FileSystem. |
62 // WebFileSystemCallbacks::didOpenFileSystem() must be called with | 62 // WebFileSystemCallbacks::didOpenFileSystem() must be called with |
63 // a name and root path for the requested FileSystem when the operation | 63 // a name and root path for the requested FileSystem when the operation |
64 // is completed successfully. WebFileSystemCallbacks::didFail() must be | 64 // is completed successfully. WebFileSystemCallbacks::didFail() must be |
65 // called otherwise. The create bool is for indicating whether or not to | 65 // called otherwise. The create bool is for indicating whether or not to |
66 // create root path for file systems if it do not exist. | 66 // create root path for file systems if it do not exist. |
67 virtual void openFileSystem(const WebURL& storagePartition, const WebFileSys
temType, bool create, WebFileSystemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); } | 67 virtual void openFileSystem(const WebURL& storagePartition, const WebFileSys
temType, bool create, WebFileSystemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); } |
68 | 68 |
| 69 // TODO(nhiroki): writing comment. |
| 70 virtual void resolveURL(const WebURL& completedURL, WebFileSystemCallbacks*)
{ WEBKIT_ASSERT_NOT_REACHED(); } |
| 71 |
69 // Deletes FileSystem. | 72 // Deletes FileSystem. |
70 // WebFileSystemCallbacks::didSucceed() must be called when the operation | 73 // WebFileSystemCallbacks::didSucceed() must be called when the operation |
71 // is completed successfully. WebFileSystemCallbacks::didFail() must be | 74 // is completed successfully. WebFileSystemCallbacks::didFail() must be |
72 // called otherwise. | 75 // called otherwise. |
73 // All in-flight operations and following operations may fail after the | 76 // All in-flight operations and following operations may fail after the |
74 // FileSystem is deleted. | 77 // FileSystem is deleted. |
75 virtual void deleteFileSystem(const WebURL& storagePartition, const WebFileS
ystemType, WebFileSystemCallbacks*) { } | 78 virtual void deleteFileSystem(const WebURL& storagePartition, const WebFileS
ystemType, WebFileSystemCallbacks*) { } |
76 | 79 |
77 // Moves a file or directory at |srcPath| to |destPath|. | 80 // Moves a file or directory at |srcPath| to |destPath|. |
78 // WebFileSystemCallbacks::didSucceed() must be called when the operation is
completed successfully. | 81 // WebFileSystemCallbacks::didSucceed() must be called when the operation is
completed successfully. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // WebFileSystemCallbacks::didFail() must be called otherwise. | 160 // WebFileSystemCallbacks::didFail() must be called otherwise. |
158 virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSy
stemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); } | 161 virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSy
stemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); } |
159 | 162 |
160 protected: | 163 protected: |
161 virtual ~WebFileSystem() { } | 164 virtual ~WebFileSystem() { } |
162 }; | 165 }; |
163 | 166 |
164 } // namespace WebKit | 167 } // namespace WebKit |
165 | 168 |
166 #endif | 169 #endif |
OLD | NEW |