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

Unified Diff: chrome/common/extensions/api/file_system_provider.idl

Issue 50703013: fileSystemProvider: First cut at implementing fileSystemProvider API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/file_system_provider.idl
diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl
new file mode 100644
index 0000000000000000000000000000000000000000..3ab701eee0c54a9b03e83d262c68efbc6c76b364
--- /dev/null
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[platforms=("chromeos"),
+ implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h"]
+namespace fileSystemProvider {
+ // Callback to receive the result of mount() function.
+ // <code>fileSystemID</code> will be a unique ID for the file system just
+ // mounted. The ID is used to distinguish multiple file systems mounted
+ // from a single File System Provider.
+ callback MountCallback = void(DOMString fileSystemId,
+ [nodoc, instanceOf=DOMError] object error);
+
+ // Callback to handle an error raised from the browser.
+ [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error);
+
+ interface Functions {
+ // Mounts a file system with the given <code>displayName</code>.
+ // <code>displayName</code> will be shown in the left panel of
+ // Files.app. <code>displayName</code> can contain any characters
+ // including '/', but cannot be an empty string. <code>displayName</code>
+ // should be descritive but doesn't have to be unique. Duplicate display
+ // names are uniquified by adding suffix like "(1)" in the Files.app UI.
+ static void mount(DOMString displayName,
+ MountCallback successCallback,
+ [nocompile] ErrorCallback errorCallback);
+ };
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/chrome_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698