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
3 // found in the LICENSE file.
5 // Internal, used by fileSystemProvider's custom bindings. These functions are
6 // called when events' callbacks are invoked.
7 [implemented_in
="chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h", nodoc
]
8 namespace fileSystemProviderInternal
{
10 // Internal. Success callback of the <code>onUnmountRequested</code>
11 // event. Must be called when unmounting is completed.
12 static
void unmountRequestedSuccess
(
13 DOMString fileSystemId
,
17 // Internal. Success callback of the <code>onGetMetadataRequested</code>
18 // event. Must be called if metadata is available.
19 static
void getMetadataRequestedSuccess
(
20 DOMString fileSystemId
,
22 fileSystemProvider.EntryMetadata metadata
,
25 // Internal. Success callback of the <code>onReadDirectoryRequested</code>
26 // event. Can be called multiple times per request.
27 static
void readDirectoryRequestedSuccess
(
28 DOMString fileSystemId
,
30 fileSystemProvider.EntryMetadata
[] entries
,
34 // Internal. Success callback of the <code>onReadFileRequested</code>
35 // event. Can be called multiple times per request.
36 static
void readFileRequestedSuccess
(
37 DOMString fileSystemId
,
43 // Internal. Success callback of all of the operation requests, which do not
44 // return any value. Must be called in case of a success.
45 static
void operationRequestedSuccess
(
46 DOMString fileSystemId
,
50 // Internal. Error callback of all of the operation requests. Must be called
51 // if an operation fails.
52 static
void operationRequestedError
(
53 DOMString fileSystemId
,
55 fileSystemProvider.ProviderError error
,