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

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 and make it build only on chromeos Created 7 years, 2 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 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..59c1376324322be74a173756cfd0c076ae79758c
--- /dev/null
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -0,0 +1,41 @@
+// 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 {
+ // TODO(satorux): Switch to DOMError once crbug.com/313131 is fixed.
+ // http://www.w3.org/TR/file-system-api/#errors-and-exceptions
+ dictionary Error {
+ // On success, the value is "OK". On error, one of names described at the
+ // following URL is set.
+ // http://www.w3.org/TR/file-system-api/#errors-and-exceptions
+ DOMString name;
+
+ // Error message, that is present in case of a failure.
+ DOMString message;
+ };
+
+ // Callback to receive the result of mount() function. <code>error</code>
+ // indicates if the request was successful or not. See <code>Error</code>
+ // for details.
+ //
+ // On success, <code>fileSystemID</code> will be a unique ID for the file
+ // system just mounted. <code>fileSystemID</code> is undefined on error.
+ // The ID is used to distinguish multiple file systems mounted from a
+ // single File System Provider.
+ callback MountCallback = void(Error error,
+ DOMString fileSystemId);
not at google - send to devlin 2013/11/01 00:18:10 I understand why you want to do this - setting chr
satorux1 2013/11/01 01:02:04 That would be great but can we do that? Actually,
+
+ 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 '/'. <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. An empty
+ // display name is not allowed.
+ static void mount(DOMString displayName,
+ MountCallback callback);
+ };
+};
« 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