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

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: switch to two-callback approach 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..db5937e142a7a077ef179aaf1a5a3774d91ccb9c
--- /dev/null
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -0,0 +1,27 @@
+// 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")]
+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);
+
+ [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);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698