Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/common/extensions/api/file_system_provider.idl

Issue 2643013002: Don't crash browser process when OK passed as error code in FSP API. (Closed)
Patch Set: Don't crash browser process when OK passed as error code in FSP API. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems,
6 // that can be accessible from the file manager on Chrome OS. 6 // that can be accessible from the file manager on Chrome OS.
7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"] 7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"]
8 namespace fileSystemProvider { 8 namespace fileSystemProvider {
9 // Error codes used by providing extensions in response to requests as well 9 // Error codes used by providing extensions in response to requests as well
10 // as in case of errors when calling methods of the API. For success, 10 // as in case of errors when calling methods of the API. For success,
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // Callback to receive the result of $(ref:getAll) function. 511 // Callback to receive the result of $(ref:getAll) function.
512 callback GetAllCallback = void(FileSystemInfo[] fileSystems); 512 callback GetAllCallback = void(FileSystemInfo[] fileSystems);
513 513
514 // Callback to receive the result of $(ref:get) function. 514 // Callback to receive the result of $(ref:get) function.
515 callback GetCallback = void(FileSystemInfo fileSystem); 515 callback GetCallback = void(FileSystemInfo fileSystem);
516 516
517 // Callback to be called by the providing extension in case of a success. 517 // Callback to be called by the providing extension in case of a success.
518 [nocompile] callback ProviderSuccessCallback = void(); 518 [nocompile] callback ProviderSuccessCallback = void();
519 519
520 // Callback to be called by the providing extension in case of an error. 520 // Callback to be called by the providing extension in case of an error.
521 // Any error code is allowed except <code>OK</code>.
521 [nocompile] callback ProviderErrorCallback = void(ProviderError error); 522 [nocompile] callback ProviderErrorCallback = void(ProviderError error);
522 523
523 // Success callback for the $(ref:onGetMetadataRequested) event. 524 // Success callback for the $(ref:onGetMetadataRequested) event.
524 [nocompile] callback MetadataCallback = void(EntryMetadata metadata); 525 [nocompile] callback MetadataCallback = void(EntryMetadata metadata);
525 526
526 // Success callback for the $(ref:onGetActionsRequested) event. 527 // Success callback for the $(ref:onGetActionsRequested) event.
527 [nocompile] callback ActionsCallback = void(Action[] actions); 528 [nocompile] callback ActionsCallback = void(Action[] actions);
528 529
529 // Success callback for the $(ref:onReadDirectoryRequested) event. If more 530 // Success callback for the $(ref:onReadDirectoryRequested) event. If more
530 // entries will be returned, then <code>hasMore</code> must be true, and it 531 // entries will be returned, then <code>hasMore</code> must be true, and it
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 // Raised when executing an action for a set of files or directories is\ 775 // Raised when executing an action for a set of files or directories is\
775 // requested. After the action is completed, <code>successCallback</code> 776 // requested. After the action is completed, <code>successCallback</code>
776 // must be called. On error, <code>errorCallback</code> must be called. 777 // must be called. On error, <code>errorCallback</code> must be called.
777 [maxListeners=1] static void onExecuteActionRequested( 778 [maxListeners=1] static void onExecuteActionRequested(
778 ExecuteActionRequestedOptions options, 779 ExecuteActionRequestedOptions options,
779 ProviderSuccessCallback successCallback, 780 ProviderSuccessCallback successCallback,
780 ProviderErrorCallback errorCallback); 781 ProviderErrorCallback errorCallback);
781 }; 782 };
782 }; 783 };
783 784
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698