OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
9 namespace fileSystemProviderInternal { | 9 namespace fileSystemProviderInternal { |
10 interface Functions { | 10 interface Functions { |
11 // Internal. Success callback of the <code>onUnmountRequested</code> | 11 // Internal. Success callback of the <code>onUnmountRequested</code> |
12 // event. Must be called when unmounting is completed. | 12 // event. Must be called when unmounting is completed. |
13 static void unmountRequestedSuccess(long fileSystemId, | 13 static void unmountRequestedSuccess(long fileSystemId, |
14 long requestId); | 14 long requestId); |
15 | 15 |
16 // Internal. Error callback of the <code>onUnmountRequested</code> | 16 // Internal. Error callback of the <code>onUnmountRequested</code> |
17 // event. Must be called if unmounting fails. | 17 // event. Must be called if unmounting fails. |
18 static void unmountRequestedError( | 18 static void unmountRequestedError( |
19 long fileSystemId, | 19 long fileSystemId, |
20 long requestId, | 20 long requestId, |
21 // TODO(mtomasz): Use FileSystemProvider::ProviderError when namespaces | 21 fileSystemProvider.ProviderError error); |
22 // are fully implemented in IDL. | |
23 DOMString error); | |
24 }; | 22 }; |
25 }; | 23 }; |
26 | 24 |
OLD | NEW |