| 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 15 matching lines...) Expand all Loading... |
| 26 long fileSystemId, | 26 long fileSystemId, |
| 27 long requestId, | 27 long requestId, |
| 28 fileSystemProvider.EntryMetadata metadata); | 28 fileSystemProvider.EntryMetadata metadata); |
| 29 | 29 |
| 30 // Internal. Error callback of the <code>onGetMetadataRequested</code> | 30 // Internal. Error callback of the <code>onGetMetadataRequested</code> |
| 31 // event. Must be called when obtaining metadata fails. | 31 // event. Must be called when obtaining metadata fails. |
| 32 static void getMetadataRequestedError( | 32 static void getMetadataRequestedError( |
| 33 long fileSystemId, | 33 long fileSystemId, |
| 34 long requestId, | 34 long requestId, |
| 35 fileSystemProvider.ProviderError error); | 35 fileSystemProvider.ProviderError error); |
| 36 |
| 37 // Internal. Success callback of the <code>onReadDirectoryRequested</code> |
| 38 // event. Can be called multiple times per request. |
| 39 static void readDirectoryRequestedSuccess( |
| 40 long fileSystemId, |
| 41 long requestId, |
| 42 fileSystemProvider.EntryMetadata[] entries, |
| 43 boolean hasNext); |
| 44 |
| 45 // Internal. Error callback of the <code>onReadDirectoryRequested</code> |
| 46 // event. Must be called when reading a directory fails. |
| 47 static void readDirectoryRequestedError( |
| 48 long fileSystemId, |
| 49 long requestId, |
| 50 fileSystemProvider.ProviderError error); |
| 36 }; | 51 }; |
| 37 }; | 52 }; |
| 38 | 53 |
| OLD | NEW |