| Index: chrome/common/extensions/api/file_system_provider.idl
|
| diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl
|
| index f8ed6ba789618ee6dd9b184d4b63e1d6fa21c6ea..8942bda4efd015c4411082737103064bc49095a1 100644
|
| --- a/chrome/common/extensions/api/file_system_provider.idl
|
| +++ b/chrome/common/extensions/api/file_system_provider.idl
|
| @@ -29,6 +29,12 @@ namespace fileSystemProvider {
|
| IO
|
| };
|
|
|
| + // Mode of opening a file. Used by <code>onOpenFileRequested</code>.
|
| + enum OpenFileMode {
|
| + READ,
|
| + WRITE
|
| + };
|
| +
|
| // Represents metadata of a file or a directory.
|
| dictionary EntryMetadata {
|
| // True if it is a directory.
|
| @@ -116,7 +122,7 @@ namespace fileSystemProvider {
|
| long fileSystemId,
|
| DOMString entryPath,
|
| MetadataCallback successCallback,
|
| - ErrorCallback errorCallback);
|
| + ProviderErrorCallback errorCallback);
|
|
|
| // Raised when contents of a directory at <code>directoryPath</code> are
|
| // requested. The results should be returned in chunks by calling the <code>
|
| @@ -126,7 +132,18 @@ namespace fileSystemProvider {
|
| long fileSystemId,
|
| DOMString directoryPath,
|
| EntriesCallback successCallback,
|
| - ErrorCallback errorCallback);
|
| + ProviderErrorCallback errorCallback);
|
| +
|
| + // Raised when opening a file at <code>filePath</code> is requested.
|
| + // If <code>create</code> is set to <code>true</code> and the file does not
|
| + // exist, then it should be created.
|
| + [maxListeners=1] static void onOpenFileRequested(
|
| + long fileSystemId,
|
| + DOMString filePath,
|
| + OpenFileMode mode,
|
| + boolean create,
|
| + ProviderSuccessCallback successCallback,
|
| + ProviderErrorCallback errorCallback);
|
| };
|
| };
|
|
|
|
|