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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [platforms=("chromeos")]
6 namespace fileSystemProvider {
7 // Callback to receive the result of mount() function.
8 // <code>fileSystemID</code> will be a unique ID for the file system just
9 // mounted. The ID is used to distinguish multiple file systems mounted
10 // from a single File System Provider.
11 callback MountCallback = void(DOMString fileSystemId,
12 [nodoc, instanceOf=DOMError] object error);
13
14 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error);
15
16 interface Functions {
17 // Mounts a file system with the given <code>displayName</code>.
18 // <code>displayName</code> will be shown in the left panel of
19 // Files.app. <code>displayName</code> can contain any characters
20 // including '/', but cannot be an empty string. <code>displayName</code>
21 // should be descritive but doesn't have to be unique. Duplicate display
22 // names are uniquified by adding suffix like "(1)" in the Files.app UI.
23 static void mount(DOMString displayName,
24 MountCallback successCallback,
25 [nocompile] ErrorCallback errorCallback);
26 };
27 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698