OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, | 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, |
6 // that can be accessible from the file manager on Chrome OS. | 6 // that can be accessible from the file manager on Chrome OS. |
7 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
9 namespace fileSystemProvider { | 9 namespace fileSystemProvider { |
10 // Error codes used by providing extensions in response to requests. For | 10 // Error codes used by providing extensions in response to requests. For |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Raised when unmounting for the file system with the <code>fileSystemId | 95 // Raised when unmounting for the file system with the <code>fileSystemId |
96 // </code> identifier is requested. In response, the <code>unmount</code> | 96 // </code> identifier is requested. In response, the <code>unmount</code> |
97 // API method should be called together with <code>successCallback</code>. | 97 // API method should be called together with <code>successCallback</code>. |
98 // If unmounting is not possible (eg. due to a pending operation), then | 98 // If unmounting is not possible (eg. due to a pending operation), then |
99 // <code>errorCallback</code> must be called. | 99 // <code>errorCallback</code> must be called. |
100 [maxListeners=1] static void onUnmountRequested( | 100 [maxListeners=1] static void onUnmountRequested( |
101 long fileSystemId, | 101 long fileSystemId, |
102 ProviderSuccessCallback successCallback, | 102 ProviderSuccessCallback successCallback, |
103 ProviderErrorCallback errorCallback); | 103 ProviderErrorCallback errorCallback); |
104 | 104 |
105 // Raised, when metadata of a file or a directory at <code>entryPath</code> | 105 // Raised when metadata of a file or a directory at <code>entryPath</code> |
106 // is requested. The metadata should be returned with the <code> | 106 // is requested. The metadata should be returned with the <code> |
107 // successCallback</code> call. In case of an error, <code>errorCallback | 107 // successCallback</code> call. In case of an error, <code>errorCallback |
108 // </code> must be called. | 108 // </code> must be called. |
109 [maxListeners=1] static void onGetMetadataRequested( | 109 [maxListeners=1] static void onGetMetadataRequested( |
110 long fileSystemId, | 110 long fileSystemId, |
111 DOMString entryPath, | 111 DOMString entryPath, |
112 MetadataCallback successCallback, | 112 MetadataCallback successCallback, |
113 ErrorCallback errorCallback); | 113 ErrorCallback errorCallback); |
114 }; | 114 }; |
115 }; | 115 }; |
116 | 116 |
OLD | NEW |