OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Internal, used by fileSystemProvider's custom bindings. These functions are | 5 // Internal, used by fileSystemProvider's custom bindings. These functions are |
6 // called when events' callbacks are invoked. | 6 // called when events' callbacks are invoked. |
7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h", nodoc] | 7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h", nodoc] |
8 namespace fileSystemProviderInternal { | 8 namespace fileSystemProviderInternal { |
9 interface Functions { | 9 interface Functions { |
10 // Internal. Success callback of the <code>onUnmountRequested</code> | 10 // Internal. Success callback of the <code>onUnmountRequested</code> |
11 // event. Must be called when unmounting is completed. | 11 // event. Must be called when unmounting is completed. |
12 static void unmountRequestedSuccess( | 12 static void unmountRequestedSuccess( |
13 DOMString fileSystemId, | 13 DOMString fileSystemId, |
14 long requestId, | 14 long requestId, |
15 long executionTime); | 15 long executionTime); |
16 | 16 |
17 // Internal. Success callback of the <code>onGetMetadataRequested</code> | 17 // Internal. Success callback of the <code>onGetMetadataRequested</code> |
18 // event. Must be called if metadata is available. | 18 // event. Must be called if metadata is available. |
19 static void getMetadataRequestedSuccess( | 19 static void getMetadataRequestedSuccess( |
20 DOMString fileSystemId, | 20 DOMString fileSystemId, |
21 long requestId, | 21 long requestId, |
22 fileSystemProvider.EntryMetadata metadata, | 22 fileSystemProvider.EntryMetadata metadata, |
23 long executionTime); | 23 long executionTime); |
24 | 24 |
| 25 // Internal. Success callback of the <code>onGetActionsRequested</code> |
| 26 // event. Must be called if actions are available. |
| 27 static void getActionsRequestedSuccess( |
| 28 DOMString fileSystemId, |
| 29 long requestId, |
| 30 fileSystemProvider.Action[] actions, |
| 31 long executionTime); |
| 32 |
25 // Internal. Success callback of the <code>onReadDirectoryRequested</code> | 33 // Internal. Success callback of the <code>onReadDirectoryRequested</code> |
26 // event. Can be called multiple times per request. | 34 // event. Can be called multiple times per request. |
27 static void readDirectoryRequestedSuccess( | 35 static void readDirectoryRequestedSuccess( |
28 DOMString fileSystemId, | 36 DOMString fileSystemId, |
29 long requestId, | 37 long requestId, |
30 fileSystemProvider.EntryMetadata[] entries, | 38 fileSystemProvider.EntryMetadata[] entries, |
31 boolean hasMore, | 39 boolean hasMore, |
32 long executionTime); | 40 long executionTime); |
33 | 41 |
34 // Internal. Success callback of the <code>onReadFileRequested</code> | 42 // Internal. Success callback of the <code>onReadFileRequested</code> |
(...skipping 15 matching lines...) Expand all Loading... |
50 // Internal. Error callback of all of the operation requests. Must be called | 58 // Internal. Error callback of all of the operation requests. Must be called |
51 // if an operation fails. | 59 // if an operation fails. |
52 static void operationRequestedError( | 60 static void operationRequestedError( |
53 DOMString fileSystemId, | 61 DOMString fileSystemId, |
54 long requestId, | 62 long requestId, |
55 fileSystemProvider.ProviderError error, | 63 fileSystemProvider.ProviderError error, |
56 long executionTime); | 64 long executionTime); |
57 }; | 65 }; |
58 }; | 66 }; |
59 | 67 |
OLD | NEW |