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 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h", nodoc] | 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h", nodoc] |
9 namespace fileSystemProviderInternal { | 9 namespace fileSystemProviderInternal { |
10 interface Functions { | 10 interface Functions { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static void closeFileRequestedSuccess( | 67 static void closeFileRequestedSuccess( |
68 long fileSystemId, | 68 long fileSystemId, |
69 long requestId); | 69 long requestId); |
70 | 70 |
71 // Internal. Error callback of the <code>onCloseFileRequested</code> event. | 71 // Internal. Error callback of the <code>onCloseFileRequested</code> event. |
72 // Must be called when closing fails. | 72 // Must be called when closing fails. |
73 static void closeFileRequestedError( | 73 static void closeFileRequestedError( |
74 long fileSystemId, | 74 long fileSystemId, |
75 long requestId, | 75 long requestId, |
76 fileSystemProvider.ProviderError error); | 76 fileSystemProvider.ProviderError error); |
| 77 |
| 78 // Internal. Success callback of the <code>onReadFileRequested</code> |
| 79 // event. Can be called multiple times per request. |
| 80 static void readFileRequestedSuccess( |
| 81 long fileSystemId, |
| 82 long requestId, |
| 83 DOMString data, |
| 84 boolean hasNext); |
| 85 |
| 86 // Internal. Error callback of the <code>onReadFileRequested</code> |
| 87 // event. Must be called when reading a file fails. |
| 88 static void readFileRequestedError( |
| 89 long fileSystemId, |
| 90 long requestId, |
| 91 fileSystemProvider.ProviderError error); |
77 }; | 92 }; |
78 }; | 93 }; |
79 | 94 |
OLD | NEW |