Revert "Only store leading 13 bits of password hash."
[chromium-blink-merge.git] / chrome / common / extensions / api / file_system_provider_internal.idl
blobe973e4aa06c8bb947107dc5f7e8b1fd6c7ea1fa5
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 {
9 interface Functions {
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,
14 long requestId,
15 long executionTime);
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,
21 long requestId,
22 fileSystemProvider.EntryMetadata metadata,
23 long executionTime);
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,
29 long requestId,
30 fileSystemProvider.EntryMetadata[] entries,
31 boolean hasMore,
32 long executionTime);
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,
38 long requestId,
39 ArrayBuffer data,
40 boolean hasMore,
41 long executionTime);
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,
47 long requestId,
48 long executionTime);
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,
54 long requestId,
55 fileSystemProvider.ProviderError error,
56 long executionTime);